projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
903cb4d
)
(decl_attribtes, case A_SECTION): Allow for static local variable.
author
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 23 Sep 1996 01:06:39 +0000
(21:06 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 23 Sep 1996 01:06:39 +0000
(21:06 -0400)
From-SVN: r12774
gcc/c-common.c
patch
|
blob
|
history
diff --git
a/gcc/c-common.c
b/gcc/c-common.c
index 31236f9ac80457c046db07eae840355a84b35a3a..45ee4160af92782456d5aad750dfa36decba386a 100644
(file)
--- a/
gcc/c-common.c
+++ b/
gcc/c-common.c
@@
-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