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

Guido Guenther
2004-08-04T10:43:14Z

[-- Attachment #1.1: Type: text/plain, Size: 702 bytes --]

On Fri, Jul 30, 2004 at 02:03:18PM -0700, Tom Rini wrote:
>
> On Fri, Jul 30, 2004 at 10:48:28PM +0200, Giuliano Pochini wrote:
>
> [snip]
> > gcc 3.3.3 + binutils 2.15 fails quite soon here:
> >
> > AS arch/ppc/kernel/l2cr.o
> > arch/ppc/kernel/l2cr.S: Assembler messages:
> > arch/ppc/kernel/l2cr.S:110: Error: Unrecognized opcode: `dssall'
> > arch/ppc/kernel/l2cr.S:278: Error: Unrecognized opcode: `dssall'
> > arch/ppc/kernel/l2cr.S:387: Error: Unrecognized opcode: `dssall'
> > make[1]: *** [arch/ppc/kernel/l2cr.o] Error 1
>
> Can you try with the following?
Doesn't apply against 2.6.8-rc3. For what it's worth, I've attached a version that does.
Cheers,
-- Guido

[-- Attachment #1.2: introduce-aflags.diff --]
[-- Type: text/plain, Size: 778 bytes --]

--- ../linux-2.6.8-rc3.orig/arch/ppc/Makefile 2004-06-16 07:18:57.000000000 +0200
+++ arch/ppc/Makefile 2004-08-04 11:39:26.518867808 +0200
@@ -15,14 +15,20 @@

LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic
CPPFLAGS += -Iarch/$(ARCH)
-AFLAGS += -Iarch/$(ARCH)
+aflags-y += -Iarch/$(ARCH)
cflags-y += -Iarch/$(ARCH) -msoft-float -pipe \
-ffixed-r2 -Wno-uninitialized -mmultiple -mstring
CPP = $(CC) -E $(CFLAGS)

+aflags-$(CONFIG_4xx) += -m405
cflags-$(CONFIG_4xx) += -Wa,-m405
+aflags-$(CONFIG_6xx) += -maltivec
+cflags-$(CONFIG_6xx) += -Wa,-maltivec
+aflags-$(CONFIG_E500) += -me500
+aflags-$(CONFIG_PPC64BRIDGE) += -mppc64bridge
cflags-$(CONFIG_PPC64BRIDGE) += -Wa,-mppc64bridge

+AFLAGS += $(aflags-y)
CFLAGS += $(cflags-y)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]