This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Converting tm.h macros to functions
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Converting tm.h macros to functions
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 18 Jun 2001 09:10:18 -0700
- cc: Neil Booth <neil at daikokuya dot demon dot co dot uk>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
> I'd prefer to refine this a bit: have target.h as the public header for
> the structure, and a separate target-def.h which defines the default for
> ASM_OUTPUT_INT and defines TARGET_INITIALIZER, and only gets included in
> the target .c files - to minimise where the macros are visible.
Sure. I was mostly just trying to show how to get around the
"adding a function means everything has to change" problem.
I see building interfaces like this as one of the absolutely best things
we can do to increase the reliability of GCC, and to make it easier
for us to develop the compiler.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com