summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1994-02-17 22:48:19 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1994-02-17 22:48:19 +0000
commitabcc07fee5373847be45d6b11acb8ff812754e7d (patch)
tree05501e9d8a942e2cff1590c3ab25b5156361616a /gcc/c-parse.in
parent4bc6e1bc0ddb9b160bb512876f81f45caafec3c6 (diff)
downloadgcc-abcc07fee5373847be45d6b11acb8ff812754e7d.tar.gz
(attrib): Handle attribute ((section ("string"))).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6581 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 29708d6e37f..82e9d7a18bb 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1110,6 +1110,16 @@ attrib
tree_cons ($5, $7, NULL_TREE),
NULL_TREE),
NULL_TREE); }
+ | IDENTIFIER '(' STRING ')'
+ { /* If not "section (name)", then issue warning. */
+ if (strcmp (IDENTIFIER_POINTER ($1), "section") != 0)
+ {
+ warning ("`%s' attribute directive ignored",
+ IDENTIFIER_POINTER ($1));
+ $$ = $1;
+ }
+ else
+ $$ = tree_cons ($1, $3, NULL_TREE); }
;
/* Initializers. `init' is the entry point. */