public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* TARGET_* target hook inconsistency
@ 2002-05-31 18:20 DJ Delorie
  0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2002-05-31 18:20 UTC (permalink / raw)
  To: gcc


In target-def.h most of the macros are unconditionally defined.  The
documentation states that such "target hooks" should be undef/defined
after including target-def.h (you certainly can't define them *before*
including target-def.h).

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.

The documentation doesn't discriminate between the two types, though.
It labels them both "target hooks", which seems to contradict the .h
file.

For example, TARGET_ASM_NAMED_SECTION is a target hook:

@deftypefn {Target Hook} void TARGET_ASM_NAMED_SECTION ...

But it is is assumed set or not in target-def.h:

#  ifdef TARGET_ASM_NAMED_SECTION

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-31 22:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-31 18:20 TARGET_* target hook inconsistency DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).