]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(attrib): Use `identifier' instead of `IDENTIFIER' since names that
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 19 Mar 1994 23:02:29 +0000 (18:02 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 19 Mar 1994 23:02:29 +0000 (18:02 -0500)
are (e.g.) typedef names are still OK.

From-SVN: r6828

gcc/c-parse.in

index 82e9d7a18bb98aa092b87cfabc5ec24cba3e49b2..88ddf87f0a1fae1276dc55fbe62f2992876414c5 100644 (file)
@@ -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)
            {