Re: [PATCH][PPC32] Makefile cleanups and gcc-3.4+binutils-2.14 c

Olaf Hering
2004-08-05T17:39:31Z

On Thu, Aug 05, Tom Rini wrote:

> On Thu, Aug 05, 2004 at 07:00:44PM +0200, Olaf Hering wrote:
> > On Thu, Aug 05, Tom Rini wrote:
> >
> > > On Thu, Aug 05, 2004 at 04:12:57PM +0200, Olaf Hering wrote:
> > > > On Fri, Jul 30, Tom Rini wrote:
> > > >
> > > > >
> > > > > +aflags-$(CONFIG_PPC64BRIDGE) += -mppc64bridge
> > > >
> > > > this should be -Wa,-mppc64bridge for some reasons.
> > >
> > > That, er, doesn't make sense. The assembler needs -Wa,?
> >
> > The cmdline was 'gcc .. -mppc64bridge ..'
> > But there is more breakage with g5 32bit, I'm looking at it right now.
>
> Hmm. Was cflags-... done correctly?

I have currently no idea whats going on with the cflags. power3 and g5
fails for me with current binutils and hammer branch.

g5 needs the altivec option, because -maltivec -mppc64bridge will disable
altivec again in as. And arch/ppc/kernel/Makefile adds -mppc64bridge
after the cflags in arch/ppc/Makefile. Maybe the EXTRA_CFLAGS can be
removed from arch/ppc/kernel/Makefile?

plain rc3 with g5 32bit (and power3) .config gives this:

gcc -m32 -Wp,-MD,usr/.initramfs_data.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iarch/ppc -D__ASSEMBLY__ -Iarch/ppc -mppc64bridge -c -o usr/initramfs_data.o usr/initramfs_data.S
cc1: error: invalid option `ppc64bridge'

this comes from aflags-$(CONFIG_PPC64BRIDGE) in arch/ppc/Makefile

--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG