This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Table-driven attributes patch: followup patch for building with a C compiler
- To: jsm28 at cam dot ac dot uk (Joseph S. Myers)
- Subject: Re: Table-driven attributes patch: followup patch for building with a C compiler
- From: Joern Rennecke <amylaar at onetel dot net dot uk>
- Date: Fri, 21 Sep 2001 03:30:19 +0100 (BST)
- Cc: gcc-patches at gcc dot gnu dot org, amylaar at onetel dot net dot uk
> + while (inner_decl != NULL_TREE
> + && TREE_CODE (inner_decl) == TREE_LIST)
> + inner_decl = TREE_VALUE (inner_decl);
> + int attr_flags = 0;
Fri Sep 21 03:26:30 2001 J"orn Rennecke <amylaar@redhat.com>
* decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.814
diff -p -r1.814 decl.c
*** decl.c 2001/09/21 01:26:54 1.814
--- decl.c 2001/09/21 02:23:01
*************** grokdeclarator (declarator, declspecs, d
*** 10362,10373 ****
a TREE_LIST. */
tree attrs = TREE_PURPOSE (declarator);
tree inner_decl;
declarator = TREE_VALUE (declarator);
inner_decl = declarator;
while (inner_decl != NULL_TREE
&& TREE_CODE (inner_decl) == TREE_LIST)
inner_decl = TREE_VALUE (inner_decl);
! int attr_flags = 0;
if (inner_decl == NULL_TREE
|| TREE_CODE (inner_decl) == IDENTIFIER_NODE)
attr_flags |= (int) ATTR_FLAG_DECL_NEXT;
--- 10362,10375 ----
a TREE_LIST. */
tree attrs = TREE_PURPOSE (declarator);
tree inner_decl;
+ int attr_flags;
+
declarator = TREE_VALUE (declarator);
inner_decl = declarator;
while (inner_decl != NULL_TREE
&& TREE_CODE (inner_decl) == TREE_LIST)
inner_decl = TREE_VALUE (inner_decl);
! attr_flags = 0;
if (inner_decl == NULL_TREE
|| TREE_CODE (inner_decl) == IDENTIFIER_NODE)
attr_flags |= (int) ATTR_FLAG_DECL_NEXT;