This is the mail archive of the
mailing list for the GCC project.
Re: TARGET_* target hook inconsistency
- From: Richard Henderson <rth at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 31 May 2002 18:26:21 -0700
- Subject: Re: TARGET_* target hook inconsistency
- References: <200205312250.g4VMo8425976@greed.delorie.com>
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.