Commit a7c1916a by Doug Evans

(decl_constant_value): Delete test for ! TREE_PUBLIC.

From-SVN: r12916
parent b405396c
...@@ -938,16 +938,16 @@ c_alignof_expr (expr) ...@@ -938,16 +938,16 @@ c_alignof_expr (expr)
else else
return c_alignof (TREE_TYPE (expr)); return c_alignof (TREE_TYPE (expr));
} }
/* Return either DECL or its known constant value (if it has one). */ /* Return either DECL or its known constant value (if it has one). */
static tree static tree
decl_constant_value (decl) decl_constant_value (decl)
tree decl; tree decl;
{ {
if (! TREE_PUBLIC (decl) if (/* Don't change a variable array bound or initial value to a constant
/* Don't change a variable array bound or initial value to a constant
in a place where a variable is invalid. */ in a place where a variable is invalid. */
&& current_function_decl != 0 current_function_decl != 0
&& ! pedantic && ! pedantic
&& ! TREE_THIS_VOLATILE (decl) && ! TREE_THIS_VOLATILE (decl)
&& TREE_READONLY (decl) && ! ITERATOR_P (decl) && TREE_READONLY (decl) && ! ITERATOR_P (decl)
......
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