From 830c740f17a21a901b91de6723d97567bae47770 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 5 Sep 2011 09:03:08 +0000 Subject: stor-layout.c (layout_type): Use size_binop for array size calculations. 2011-09-05 Richard Guenther * 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 --- gcc/c-family/c-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-family/c-common.c') 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 { -- cgit v1.1