c-decl.c (c_override_global_bindings_to_false): Remove.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 10 May 2011 19:12:34 +0000 (20:12 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 10 May 2011 19:12:34 +0000 (20:12 +0100)
* c-decl.c (c_override_global_bindings_to_false): Remove.
(global_bindings_p): Don't check
c_override_global_bindings_to_false.
* c-tree.h (c_override_global_bindings_to_false): Remove.
* c-typeck.c (composite_type): Don't set
c_override_global_bindings_to_false.

From-SVN: r173632

gcc/ChangeLog
gcc/c-decl.c
gcc/c-tree.h
gcc/c-typeck.c

index fb479a4..410bc26 100644 (file)
@@ -1,3 +1,12 @@
+2011-05-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-decl.c (c_override_global_bindings_to_false): Remove.
+       (global_bindings_p): Don't check
+       c_override_global_bindings_to_false.
+       * c-tree.h (c_override_global_bindings_to_false): Remove.
+       * c-typeck.c (composite_type): Don't set
+       c_override_global_bindings_to_false.
+
 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/48857, 48495
index 6e359a9..3843f77 100644 (file)
@@ -147,10 +147,6 @@ static int warn_about_return_type;
 
 static bool undef_nested_function;
 
-/* True means global_bindings_p should return false even if the scope stack
-   says we are in file scope.  */
-bool c_override_global_bindings_to_false;
-
 \f
 /* Each c_binding structure describes one binding of an identifier to
    a decl.  All the decls in a scope - irrespective of namespace - are
@@ -850,7 +846,7 @@ objc_mark_locals_volatile (void *enclosing_blk)
 bool
 global_bindings_p (void)
 {
-  return current_scope == file_scope && !c_override_global_bindings_to_false;
+  return current_scope == file_scope;
 }
 
 void
index e2b42bf..95a0ba2 100644 (file)
@@ -597,11 +597,6 @@ extern int current_function_returns_abnormally;
 
 extern int system_header_p;
 
-/* True means global_bindings_p should return false even if the scope stack
-   says we are in file scope.  */
-
-extern bool c_override_global_bindings_to_false;
-
 /* In c-decl.c */
 extern void c_finish_incomplete_decl (tree);
 extern void c_write_global_declarations (void);
index 545cd01..6016db2 100644 (file)
@@ -507,9 +507,6 @@ composite_type (tree t1, tree t2)
 
        /* If both args specify argument types, we must merge the two
           lists, argument by argument.  */
-       /* Tell global_bindings_p to return false so that variable_size
-          doesn't die on VLAs in parameter types.  */
-       c_override_global_bindings_to_false = true;
 
        len = list_length (p1);
        newargs = 0;
@@ -592,7 +589,6 @@ composite_type (tree t1, tree t2)
          parm_done: ;
          }
 
-       c_override_global_bindings_to_false = false;
        t1 = build_function_type (valtype, newargs);
        t1 = qualify_type (t1, t2);
        /* ... falls through ...  */