(decl_constant_value): Delete test for ! TREE_PUBLIC.
authorDoug Evans <dje@gnu.org>
Tue, 8 Oct 1996 20:01:15 +0000 (20:01 +0000)
committerDoug Evans <dje@gnu.org>
Tue, 8 Oct 1996 20:01:15 +0000 (20:01 +0000)
From-SVN: r12916

gcc/c-typeck.c

index 0994ec380fa789cfb0e8d474acd1158b03bf35b7..ec261853d0297d7ea57150bc5509c7518401be7b 100644 (file)
@@ -938,16 +938,16 @@ c_alignof_expr (expr)
   else
     return c_alignof (TREE_TYPE (expr));
 }
+
 /* Return either DECL or its known constant value (if it has one).  */
 
 static tree
 decl_constant_value (decl)
      tree decl;
 {
-  if (! TREE_PUBLIC (decl)
-      /* Don't change a variable array bound or initial value to a constant
+  if (/* Don't change a variable array bound or initial value to a constant
         in a place where a variable is invalid.  */
-      && current_function_decl != 0
+      current_function_decl != 0
       && ! pedantic
       && ! TREE_THIS_VOLATILE (decl)
       && TREE_READONLY (decl) && ! ITERATOR_P (decl)