* c-typeck.c (digest_init): Fold init expression.
From-SVN: r40867
This commit is contained in:
parent
005a5cb08b
commit
b13aca193b
4 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
2
gcc/testsuite/gcc.c-torture/compile/20010327-1.c
Normal file
2
gcc/testsuite/gcc.c-torture/compile/20010327-1.c
Normal file
|
@ -0,0 +1,2 @@
|
|||
extern void _text;
|
||||
static unsigned long x = (unsigned long) &_text - 0x10000000L - 1;
|
Loading…
Add table
Reference in a new issue