This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Table-driven attributes patch: followup patch for building with a C compiler


> + 	    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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]