aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-09-05 09:03:08 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-09-05 09:03:08 +0000
commit830c740f17a21a901b91de6723d97567bae47770 (patch)
treeea45e4b0b22441a465d4935a39d510d54d5b860a /gcc/c-family
parentc149e48765862535842cf968dc10667038988606 (diff)
downloadgcc-830c740f17a21a901b91de6723d97567bae47770.zip
gcc-830c740f17a21a901b91de6723d97567bae47770.tar.gz
gcc-830c740f17a21a901b91de6723d97567bae47770.tar.bz2
stor-layout.c (layout_type): Use size_binop for array size calculations.
2011-09-05 Richard Guenther <rguenther@suse.de> * stor-layout.c (layout_type): Use size_binop for array size calculations. c-family/ * c-common.c (complete_array_type): Use ssize_int (-1) instead of integer_minus_one_node for empty array upper bounds. From-SVN: r178526
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 44eae08..95abde6 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-05 Richard Guenther <rguenther@suse.de>
+
+ * c-common.c (complete_array_type): Use ssize_int (-1) instead
+ of integer_minus_one_node for empty array upper bounds.
+
2011-08-28 Dodji Seketeli <dodji@redhat.com>
* c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index 4cace8d..9c42d594 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -8844,7 +8844,7 @@ complete_array_type (tree *ptype, tree initial_value, bool do_default)
{
if (pedantic)
failure = 3;
- maxindex = integer_minus_one_node;
+ maxindex = ssize_int (-1);
}
else
{