mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 17:00:25 +08:00
varasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the constant.
* varasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the constant. From-SVN: r32084
This commit is contained in:
parent
8d7a5379cd
commit
99740276e4
@ -1,3 +1,8 @@
|
||||
2000-02-20 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* varasm.c (initializer_constant_valid_p): Call
|
||||
lang_expand_constant to simplify the constant.
|
||||
|
||||
2000-02-20 Bruce Korb <bkorb@gnu.org>
|
||||
|
||||
* fixinc/inclhack.def(stdio_va_list):
|
||||
|
@ -4025,6 +4025,11 @@ initializer_constant_valid_p (value, endtype)
|
||||
tree value;
|
||||
tree endtype;
|
||||
{
|
||||
/* Give the front-end a chance to convert VALUE to something that
|
||||
looks more like a constant to the back-end. */
|
||||
if (lang_expand_constant)
|
||||
value = (*lang_expand_constant) (value);
|
||||
|
||||
switch (TREE_CODE (value))
|
||||
{
|
||||
case CONSTRUCTOR:
|
||||
|
Loading…
Reference in New Issue
Block a user