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]
Other format: [Raw text]

Re: [patch] Include tm.h in hooks.h, protect tm.h from multiple inclusion, and FIX BOOTSTRAP


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


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