* c-typeck.c (digest_init): Fold init expression.

From-SVN: r40867
This commit is contained in:
Alan Modra 2001-03-27 06:03:40 +00:00 committed by Alan Modra
parent 005a5cb08b
commit b13aca193b
4 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-03-27 Alan Modra <alan@linuxcare.com.au>
* c-typeck.c (digest_init): Fold init expression.
2001-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* sbitmap.c (sbitmap_copy): Call memcpy, not bcopy.

View File

@ -4675,6 +4675,8 @@ digest_init (type, init, require_constant, constructor_constant)
if (TREE_CODE (init) == NON_LVALUE_EXPR)
inside_init = TREE_OPERAND (init, 0);
inside_init = fold (inside_init);
/* Initialization of an array of chars from a string constant
optionally enclosed in braces. */

View File

@ -1,3 +1,7 @@
2001-03-27 Alan Modra <alan@linuxcare.com.au>
* gcc.c-torture/compile/20010327-1.c: New test.
2001-03-26 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/friend12.C: New test.

View File

@ -0,0 +1,2 @@
extern void _text;
static unsigned long x = (unsigned long) &_text - 0x10000000L - 1;