Subject: Re: proposed change to m68k-gcc CPP_SPEC / CPP_PREDEFINES
To: None <eeh@btr.btr.com>
From: Gordon W. Ross <gwr@mc.com>
List: tech-userlevel
Date: 05/09/1996 13:56:03
> Date: Thu, 9 May 1996 09:06:42 -0700 (PDT)
> From: "Eduardo E. Horvath eeh@btr.com" <eeh@btr.btr.com>
> On Tue, 7 May 1996, J.T. Conklin wrote:
>
> > The enclosed patchq removes mc68000 and mc68020 from our gcc's
> > CPP_PREDEFINES, and defines __mc680X0__ as appropriate for
> > whatever -m680X0 flag is specified on the command line.
> >
> > This change is consistant with the goal of having only __NetBSD__ and
> > __${MACHINE_ARCH}__ be predefined CPP macros, yet it allows users to
> > have conditional code based on the target cpu.
> >
> > Before I submit this change to the FSF, I'd appreciate any comments.
>
> It would also be nice to define a particular machine architecture so if
> you try to build X11 on, say, an Amiga, you don't build Xhp, or if you
> compile on a Mac you don't build Xsun.
>
> Eduardo
Of course, that would also cause the program /usr/libexec/cpp
to become machine-dependent, so it could not be shared between
the sun3 and amiga (for example). Though, I supose one could
define the symbol based on uname the way make does...
Gordon