This is the mail archive of the gcc@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: TARGET_* target hook inconsistency


On Fri, May 31, 2002 at 06:50:08PM -0400, DJ Delorie wrote:
> However, some of the target hooks are protected with #ifndefs, and are
> used in #ifs.  Obviously, those must be defined *before* target-def.h
> is included.

Yep.  In general, the hooks that are cpu related can be properly
redefined in the .c file.  However, the hooks that are OS related
are problematic -- the only way to avoid an unholy ifdef mess in
the .c files is to define the hook in the OS-specific target header.


r~


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