public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Proper Place for builtin_define(__ELF__)
@ 2021-07-21 21:28 Joel Sherrill
  2021-07-22  0:12 ` Michael Eager
  0 siblings, 1 reply; 8+ messages in thread
From: Joel Sherrill @ 2021-07-21 21:28 UTC (permalink / raw)
  To: GCC

Hi

We are in the process of porting RTEMS to the Microblaze and gcc does
not have __ELF__ as a predefine. In looking around at where to add it,
it looks like there are multiple ways to do it. We see variations on
the following patterns:

+ dbxelf.h
+ OS specific header in config/
+ Arch/OS specific header

Integrating dbxelf.h into the microblaze seems risky for one simple
builtin_define(). Adding it to config/microblaze/rtems.h won't address
the microblaze-elf target.

A suggestion on where to add the builtin_predefine is appreciated.

Thanks

--joel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-23 16:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 21:28 Proper Place for builtin_define(__ELF__) Joel Sherrill
2021-07-22  0:12 ` Michael Eager
2021-07-22  0:22   ` Joel Sherrill
2021-07-22  0:31     ` Michael Eager
2021-07-22  3:08       ` Jeff Law
2021-07-22 14:12         ` Joel Sherrill
2021-07-23 16:42           ` Jeff Law
2021-07-22 14:34         ` David Edelsohn

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).