diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-03-27 19:42:26 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-03-27 19:42:26 +0000 |
commit | e77425069fae34c9b26755f9091b50c02fcc13b4 (patch) | |
tree | 3070b61ebd82fdc0bf0c78ed2cfcebafa9710f13 /gcc/c-parse.in | |
parent | ed387e7bd96ddfc6746e355ac7740b18f38aa653 (diff) | |
download | gcc-e77425069fae34c9b26755f9091b50c02fcc13b4.tar.gz |
Back out this patch:
(attrib): Use `identifier' instead of `IDENTIFIER' since names that
are (e.g.) typedef names are still OK.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6912 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index d01018dbc6a..36cfa2addb3 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1062,14 +1062,14 @@ attribute_list ; attrib - : identifier + : IDENTIFIER { if (strcmp (IDENTIFIER_POINTER ($1), "packed") && strcmp (IDENTIFIER_POINTER ($1), "noreturn")) warning ("`%s' attribute directive ignored", IDENTIFIER_POINTER ($1)); $$ = $1; } | TYPE_QUAL - | identifier '(' identifier ')' + | IDENTIFIER '(' IDENTIFIER ')' { /* If not "mode (m)" or "aligned", then issue warning. If "aligned", this will later produce an error in decl_attributes since an identifier is not a valid constant, but we want to give @@ -1084,7 +1084,7 @@ attrib } else $$ = tree_cons ($1, $3, NULL_TREE); } - | identifier '(' expr_no_commas ')' + | IDENTIFIER '(' expr_no_commas ')' { /* if not "aligned(n)", then issue warning */ if (strcmp (IDENTIFIER_POINTER ($1), "aligned") != 0) { @@ -1094,7 +1094,7 @@ attrib } else $$ = tree_cons ($1, $3, NULL_TREE); } - | identifier '(' identifier ',' expr_no_commas ',' expr_no_commas ')' + | IDENTIFIER '(' IDENTIFIER ',' expr_no_commas ',' expr_no_commas ')' { /* if not "format(...)", then issue warning */ if (strcmp (IDENTIFIER_POINTER ($1), "format") != 0) { @@ -1108,7 +1108,7 @@ attrib tree_cons ($5, $7, NULL_TREE), NULL_TREE), NULL_TREE); } - | identifier '(' STRING ')' + | IDENTIFIER '(' STRING ')' { /* If not "section (name)", then issue warning. */ if (strcmp (IDENTIFIER_POINTER ($1), "section") != 0) { |