This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Let gcc bootstrap again on OpenBSD
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Marc Espie <espie at nerim dot net>
- Cc: gcc-patches at gcc dot gnu dot org, gerald at pfeifer dot com, dewar at adacore dot com,gdr at integrable-solutions dot net, mark at codesourcery dot com,pinskia at physics dot uc dot edu
- Date: Sun, 9 Jan 2005 09:32:16 +0900
- Subject: Re: [PATCH] Let gcc bootstrap again on OpenBSD
- References: <20050108155847.GA26242@tetto.home>
Marc Espie wrote:-
> 2005-01-08 Marc Espie <espie@openbsd.org>
> + /* TARGET_OS_CPP_BUILTINS() common to all OpenBSD ELF targets. */
> + #define OPENBSD_OS_CPP_BUILTINS_ELF() \
> + do \
> + { \
> + OPENBSD_OS_CPP_BUILTINS_COMMON(); \
> + builtin_define ("__ELF__"); \
> + } \
> + while (0)
On versions of GCC up to about 18 months old, this is unnecessary.
I added the __ELF__ macro for all ELF users in elfos.h. Dunno
if your patch is to a GCC that is too old, but losing this will
permit cleanup of these macros.
> + /* TARGET_OS_CPP_BUILTINS() common to all LP64 OpenBSD targets. */
> + #define OPENBSD_OS_CPP_BUILTINS_LP64() \
> + do \
> + { \
> + builtin_define ("_LP64"); \
> + builtin_define ("__LP64__"); \
> + } \
> + while (0)
Similarly someone (Andreas?) I think put this in c-cppbuiltin.c
some time ago.
Neil.