This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Include tm.h in hooks.h, protect tm.h from multiple inclusion, and FIX BOOTSTRAP
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: Nathanael Nerode <neroden at twcny dot rr dot com>, gcc-patches at gcc dot gnu dot org
- Date: 19 Jun 2003 04:12:34 -0300
- Subject: Re: [patch] Include tm.h in hooks.h, protect tm.h from multiple inclusion, and FIX BOOTSTRAP
- Organization: GCC Team, Red Hat
- References: <20030619003425.GA16595@doctormoo><20030619054919.GA20053@daikokuya.co.uk>
On Jun 19, 2003, Neil Booth <neil@daikokuya.co.uk> wrote:
> Nathanael Nerode wrote:-
>> * mkconfig.sh: Add multiple inclusion guard to tm.h.
>> * hooks.h: Include tm.h.
> I don't think tm.h include should be in hooks.h FWIW. It should
> be in whatever C files need it.
I.e., in whatever C files #include hooks.h? Remember, the problem is
that hooks.h references an enum type that is defined in tm.h, and you
can't forward-declare enums.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer