There is a third place that '#undef PPC' is needed (at the top of
PPCFixupKinds.h). Alternatively, you can run configure with -UPPC in
your CPPFLAGS. I'll try to get this fixed in trunk shortly.
> > > +// Generated files will use "namespace PPC". To avoid symbol clash,
> > > +// undefine PPC here. PPC may be predefined on some hosts.
> > > +#undef PPC
> > > +
> >
> > I wonder if it shouldn't just be renamed to PowerPC everywhere. It's not
> > that much longer.
>
> Would we need to change the 'PPC' prefix on all of the file names and
> other associated classes too?
As prefix it is fine, just the namespace itself is the problem.
I know, but I want to make sure that no one objects to breaking what
seems to be a convention followed by the other targets.
There is a third place that '#undef PPC' is needed (at the top of
PPCFixupKinds.h). Alternatively, you can run configure with -UPPC in
your CPPFLAGS. I'll try to get this fixed in trunk shortly.
I just tested this, and I was wrong: passing -UPPC to configure in
CPPFLAGS does not work for some reason. Providing CPPFLAGS=-UPPC as an
argument to make, however, does seem to work.
> Nico,
>
> There is a third place that '#undef PPC' is needed (at the top of
> PPCFixupKinds.h). Alternatively, you can run configure with -UPPC in
> your CPPFLAGS. I'll try to get this fixed in trunk shortly.
I just tested this, and I was wrong: passing -UPPC to configure in
CPPFLAGS does not work for some reason. Providing CPPFLAGS=-UPPC as an
argument to make, however, does seem to work.
$ make CPPFLAGS=-UPPC
Unfortunately, this also causes problems. This seems better:
$ make CXX='g++ -UPPC'
(where g++ should be whatever your original CXX was).