summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-object-size.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 23a54e2ed75..92befe8bdb8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2016-07-21 Jakub Jelinek <jakub@redhat.com>
+
+ * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
+
2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
Improving concepts performance and diagnostics.
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c
index 5e8ced63a2e..c08845184bb 100644
--- a/gcc/tree-object-size.c
+++ b/gcc/tree-object-size.c
@@ -43,7 +43,12 @@ struct object_size_info
unsigned int *stack, *tos;
};
-static const unsigned HOST_WIDE_INT unknown[4] = { -1, -1, 0, 0 };
+static const unsigned HOST_WIDE_INT unknown[4] = {
+ HOST_WIDE_INT_M1U,
+ HOST_WIDE_INT_M1U,
+ 0,
+ 0
+};
static tree compute_object_offset (const_tree, const_tree);
static unsigned HOST_WIDE_INT addr_object_size (struct object_size_info *,