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: 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>
- Subject: Re: Converting tm.h macros to functions
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 20 Jun 2001 14:56:38 -0700
- cc: "jsm28 at cam dot ac dot uk" <jsm28 at cam dot ac dot uk>, mike stump <mrs at windriver dot com>
>
> How far do we want to go with putting stuff in structures? For
> example, should the target escapes like TARGET_FF go in?
I don't think there's any need to put constants in the structures -- but we
could. I think it's more the function-like macros that we want to
encapsulate.
The worst are the macros that are supposed to exit with a `goto' to a
particular
label under some circumstances. Too ugly for words, in my opinion.
> at least when we get this stuff right in the future. How do we handle
> that?
For now, I'd just leave this stuff alone. Even if we can only do 80% of
the
gunk, that will be a huge win.
--
Mark Mitchelll mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com