Commit b13aca19 by Alan Modra Committed by Alan Modra

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

From-SVN: r40867
parent 005a5cb0
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> 2001-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* sbitmap.c (sbitmap_copy): Call memcpy, not bcopy. * sbitmap.c (sbitmap_copy): Call memcpy, not bcopy.
......
...@@ -4675,6 +4675,8 @@ digest_init (type, init, require_constant, constructor_constant) ...@@ -4675,6 +4675,8 @@ digest_init (type, init, require_constant, constructor_constant)
if (TREE_CODE (init) == NON_LVALUE_EXPR) if (TREE_CODE (init) == NON_LVALUE_EXPR)
inside_init = TREE_OPERAND (init, 0); inside_init = TREE_OPERAND (init, 0);
inside_init = fold (inside_init);
/* Initialization of an array of chars from a string constant /* Initialization of an array of chars from a string constant
optionally enclosed in braces. */ optionally enclosed in braces. */
......
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> 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/friend12.C: New test. * g++.old-deja/g++.other/friend12.C: New test.
......
extern void _text;
static unsigned long x = (unsigned long) &_text - 0x10000000L - 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment