Defining __powerpc__ in rs6000.h
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Sat May 19 01:40:00 GMT 2001
On Saturday 19 May 2001 07:21, Fergus Henderson wrote:
> On 18-May-2001, Franz Sirl <Franz.Sirl-kernel@lauterbach.com> wrote:
> > I think it's safe to completely kill -Dpowerpc and -DPPC, I've never seen
> > sources using them, they all seem to use the variants with underscores.
>
> I wish that were the case, but the Boehm collector uses `powerpc'
> (in include/private/gcconfig.h). There may be other software that
> does the same.
Well, no real problem, just requires the uusual guarding with undef/ansi/std=
in the spec then.
On the other hand, I consider this use of bare 'powerpc' in the GCC sources a
bug, cause it will prevent correct compilation if compiled with -ansi (or
-std=).
Franz.
More information about the Gcc
mailing list