Commit 99740276 by Mark Mitchell Committed by Mark Mitchell

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
parent 8d7a5379
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:
......
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