This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Remove obstacks
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: PATCH: Remove obstacks
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 13 Oct 2000 13:22:44 +0100
- Cc: gcc-patches at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
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));