diff options
author | Doug Evans <dje@gnu.org> | 1994-02-17 22:48:19 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1994-02-17 22:48:19 +0000 |
commit | 7ffa4f13f0dd735da844b9ce261cb2b320b6771b (patch) | |
tree | 05501e9d8a942e2cff1590c3ab25b5156361616a | |
parent | 2ea998c8f533e1a20895e2e7f69bbae58f4d15e0 (diff) | |
download | gcc-7ffa4f13f0dd735da844b9ce261cb2b320b6771b.zip gcc-7ffa4f13f0dd735da844b9ce261cb2b320b6771b.tar.gz gcc-7ffa4f13f0dd735da844b9ce261cb2b320b6771b.tar.bz2 |
(attrib): Handle attribute ((section ("string"))).
From-SVN: r6581
-rw-r--r-- | gcc/c-parse.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 29708d6..82e9d7a 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. */ |