OSDN Git Service

(decl_attribtes, case A_SECTION): Allow for static local variable.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 1996 01:06:39 +0000 (01:06 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 1996 01:06:39 +0000 (01:06 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12774 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 31236f9..45ee416 100644 (file)
@@ -498,7 +498,8 @@ decl_attributes (node, attributes, prefix_attributes)
              && TREE_CODE (TREE_VALUE (args)) == STRING_CST)
            {
              if (TREE_CODE (decl) == VAR_DECL 
-                 && current_function_decl != NULL_TREE)
+                 && current_function_decl != NULL_TREE
+                 && ! TREE_STATIC (decl))
                error_with_decl (decl,
                  "section attribute cannot be specified for local variables");
              /* The decl may have already been given a section attribute from