This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Experiences using struct gcc_target
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: Experiences using struct gcc_target
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Thu, 5 Jul 2001 16:10:03 +0100
- Cc: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, Stan Shebs <shebs at apple dot com>,gcc at gcc dot gnu dot org
Alexandre Oliva wrote:-
> Perhaps we should have alternate headers akin to C++'s <iosfwd> that
> #defined rtx and tree (or just `typedef'ed them) without actually
> defining the underlying types.
I don't like making them macros at all.
Since things like rtx and tree are so universal in GCC, we could just
put forward declarations and the typedefs thereon in some universal
header like config.h or system.h. Or we could just type a few extra
lines of code and predeclare them where necessary.
Neil.