This is the mail archive of the gcc-patches@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: [PATCH] Let gcc bootstrap again on OpenBSD


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.


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