aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>1994-03-19 23:02:29 +0000
committerRichard Kenner <kenner@vlsi1.ultra.nyu.edu>1994-03-19 23:02:29 +0000
commit410e25348ce7b5dac355b5d8bfe35a40795e2b91 (patch)
tree048e143d0f633012f63a84b5410aac747fda511c /gcc/c-parse.in
parent4ae1fd99cfd12ed121c9af162f4e8ccfc4f310ee (diff)
(attrib): Use `identifier' instead of `IDENTIFIER' since names that
are (e.g.) typedef names are still OK. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@6828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 82e9d7a18bb..88ddf87f0a1 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1064,14 +1064,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
@@ -1086,7 +1086,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)
{
@@ -1096,7 +1096,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)
{
@@ -1110,7 +1110,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)
{