This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove redundant line in c-parse.in
- To: gcc-patches at gcc dot gnu dot org
- Subject: Remove redundant line in c-parse.in
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Thu, 24 May 2001 22:47:48 +0100
- Cc: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
This patch passes a bootstrap and make check. The call to
decl_attributes is not in similar code in the rest of c-parse.in, and
is present in the call to start_decl that happens a few lines earlier.
This is a necessary prerequisite to what I am hoping will be a
considerable simplification of c-parse.in.
OK to commit?
Neil.
Index: c-parse.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-parse.in,v
retrieving revision 1.91
diff -u -p -r1.91 c-parse.in
--- c-parse.in 2001/05/19 20:19:24 1.91
+++ c-parse.in 2001/05/24 21:44:29
@@ -1459,7 +1459,6 @@ notype_initdcl:
init
/* Note how the declaration of the variable is in effect while its init is parsed! */
{ finish_init ();
- decl_attributes ($<ttype>5, $3, prefix_attributes);
finish_decl ($<ttype>5, $6, $2); }
| notype_declarator maybeasm maybe_attribute
{ tree d = start_decl ($1, current_declspecs, 0,