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: PATCH: Remove obstacks



mark@codesourcery.com said:
> Tested and bootstrapped (with and without --enable-checking=gc,gcac)
> on i6868-pc-linux-gnu.  


Really?  This is on arm-netbsd:

gcc -c  -DIN_GCC    -g -W -Wall -Wtraditional -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  
-DHAVE_CONFIG_H    -I. -I/home/rearnsha/gnusrc/egcs/gcc 
-I/home/rearnsha/gnusrc/egcs/gcc/config -I/home/rearnsha/gnusrc/egcs/gcc/..
/include /home/rearnsha/gnusrc/egcs/gcc/c-lang.c
In file included from /home/rearnsha/gnusrc/egcs/gcc/c-lang.c:25:
/home/rearnsha/gnusrc/egcs/gcc/tree.h:2635: warning: `struct obstack' 
declared inside parameter list
/home/rearnsha/gnusrc/egcs/gcc/tree.h:2635: warning: its scope is only 
this definition or declaration,
/home/rearnsha/gnusrc/egcs/gcc/tree.h:2635: warning: which is probably not 
what you want.
/home/rearnsha/gnusrc/egcs/gcc/tree.h:2646: warning: `struct obstack' 
declared inside parameter list
In file included from /home/rearnsha/gnusrc/egcs/gcc/c-lang.c:33:
/home/rearnsha/gnusrc/egcs/gcc/rtl.h:1634: conflicting types for 
`gcc_obstack_init'
/home/rearnsha/gnusrc/egcs/gcc/tree.h:2646: previous declaration of 
`gcc_obstack_init'
gnumake[2]: *** [c-lang.o] Error 1


2000-10-13  Richard Earnshaw <rearnsha@arm.com>

	* tree.h (struct obstack): Declare.



Index: tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tree.h,v
retrieving revision 1.202
diff -p -r1.202 tree.h
*** tree.h	2000/10/13 06:26:29	1.202
--- tree.h	2000/10/13 12:20:03
*************** extern HOST_WIDE_INT get_alias_set		PARA
*** 2609,2614 ****
--- 2609,2616 ----
  /* In c-common.c */
  extern HOST_WIDE_INT lang_get_alias_set		PARAMS ((tree));
  
+ struct obstack;
+ 
  /* In tree.c */
  extern int really_constant_p		PARAMS ((tree));
  extern void set_identifier_size		PARAMS ((int));

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