This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -Dgnu_{linux,hurd}
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>, gcc-bugs at gcc dot gnu dot org,gcc-patches at gcc dot gnu dot org
- Date: Sun, 14 Apr 2002 08:30:05 +0100
- Subject: Re: -Dgnu_{linux,hurd}
- References: <Pine.LNX.4.33.0204132147050.22725-100000@kern.srcf.societies.cam.ac.uk> <71350000.1018731398@gandalf.codesourcery.com> <20020414064929.GB3867@codesourcery.com>
Zack Weinberg wrote:-
> +As of GCC version 3.2, GNU CPP does not define any system-specific
> +macros outside the reserved namespace. Instead, for each such macro, it
> provides a parallel macro with two underscores added at the beginning
> -and the end. If @code{unix} is defined, @code{__unix__} will be defined
> -too. There will never be more than two underscores; the parallel of
> -@code{_mips} is @code{__mips__}.
> +and end of the name. If @code{unix} would formerly have been defined,
> +@code{__unix__} will be defined instead. There will never be more than
> +two underscores; the parallel of @code{_mips} is @code{__mips__}. You
> +must correct old code that expects macros outside the reserved
> +namespace, to use the parallels instead.
Doesn't this conflict with some of the macros still defined, such as
__vxworks here?
> +#define CPP_PREDEFINES "-D__mc68000__ -D__vxworks -D__vxworks_5
-Acpu=m68k -Amachine=m68k"
Neil.