[PATCH] fix missing option in binutils version check

Geert Uytterhoeven geert at linux-m68k.org
Sun Jul 4 18:32:52 EST 2004

On Sat, 3 Jul 2004, Tom Rini wrote:
> On Sun, Jul 04, 2004 at 03:30:47AM +0200, Stef Simoens wrote:
> > Olaf Hering wrote:
> > > On Tue, Jun 15, Tom Rini wrote:
> > >>And yes, passing -many does work on all older supported versions of
> > >>binutils.  So perhaps we should just add -Wa,-many to our cflags and be
> > >>done with it now (and for future fixes of this sort).
> > >
> > >gcc 3.2 passes only -mppc, so all altive instructions will fail to
> > >compile without either -many or -maltivec
> >
> > Are there altivec instructions when CONFIG_ALTIVEC is not set?
> Yes.  And I can forsee in the future were we might have BookE specific
> ones in the same situation.

Perhaps it makes sense to add a directive to the assembler to switch on the
fly, cfr. the `.chip' directive on m68k? E.g. using

    .chip 68040

we switch to 68040 mode, and using

    .chip 68k

we switch back to generic mode. That way we can have instructions for different
CPU types in the same kernel, while the assembler still checks the validity
depending on the selected CPU type.



Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-dev mailing list