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: Define __gnu_linux__ and __gnu_hurd__




--On Saturday, April 13, 2002 01:44:56 PM -0700 David O'Brien 
<obrien@FreeBSD.org> wrote:

> On Sat, Apr 13, 2002 at 12:24:25PM -0700, Mark Mitchell wrote:
>> The FSF has asked us to define __gnu_linux__ (in addition to __linux__)
> ...
>> Index: alpha/linux.h
>> ! "-Dgnu_linux Dlinux -Dunix -Asystem=linux -D_LONGLONG -D__alpha__ " \
>
> Did you really mean to pollute the user's namespace?  Shouldn't that be
> "-D__gnu_linux__" (yes, I know the driver will turn -Dgnu_linux into a
> million variations on the theme)  It seems a shame to introduce this new
> symbol and not follow ANSI-C off the bat.

I merely followed exactly what was there before; where -Dlinux was used
I added -Dgnu_linux; where -D__linux__ was used -D__gnu_linux__ was added.

I don't want anyone to be objecting that "linux is defined but gnu_linux
isn't; I have to say __gnu_linux__, which means that linux seemes to more
prominent."  This is a political football and I'd prefer to hand it off.

If someone confirms with the FSF that it's OK to define "linux", but not
"gnu_linux", on lots of systems, that's fine by me; consider that patch
pre-approved.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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