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:
Mark Mitchell 2000-02-21 04:25:11 +00:00 committed by Mark Mitchell
parent 8d7a5379cd
commit 99740276e4
2 changed files with 10 additions and 0 deletions

View File

@ -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):

View File

@ -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: