target-defs.h / tm.h question

Kean Johnston jkj@sco.com
Wed Oct 5 15:38:00 GMT 2005


Hi,

Is there any reason why *all* of the macros in target-defs.h
are not conditionalized? target-defs.h is always included after
tm.h, so if the target specific include sets any of the macros
that are not protected in target-defs.h, they get overwritten.
Yes, you are warned, so my question is, is the intent to only
conditioalize those macros that have actually been defined
ib the target header file and to adjust target-defs.h  on a
case by case basis, or should I just clean up target-defs.h
and protect *all* of the macros from redefining what may
have been set in tm.h?

Thanks for any input.

PS. The specific case I ran into was I needed to define
TARGET_PROMOTE_FUNCTION_RETURN but target-defs.h was not
protecting its definition thereof with a #ifndef.

Kean



More information about the Gcc mailing list