This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC fix build break caused by VMX instructions
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com, Dwayne McConnell <dgm69 at us dot ibm dot com>
- Date: Tue, 25 May 2004 11:04:28 -0500
- Subject: [PATCH] PPC fix build break caused by VMX instructions
- Organization: IBM LTC
- Reply-to: sjmunroe at vnet dot ibm dot com
As recent binutls change requires the user to specifically select a cpu
type that supports VMX to allow the assembly of VMX instructions. This
causes the compile of setjmp/__longjmp etc to fail.
The work around passes -many to the assembler for these functions. The
attached patch adds "-Wa,-many" to CPPFLAGS for the specific functions
involved.
Its it interesting that the ASFLAGS-setjmp.S form would seem to be more
appropriate but does not work.
2004-05-18 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/powerpc/Makefile [subdir=setjmp]: Use CPPFLAGS to enable
assembly of VMX opcodes in setjmp.S and __longjmp.S.
[subdir=stdlib]: Use CPPFLAGS to enable assembly of VMX opcodes in
[get|make|set|swap]context.S.
diff -urN libc23-cvstip-20040510/sysdeps/powerpc/Makefile libc23/sysdeps/powerpc/Makefile
--- libc23-cvstip-20040510/sysdeps/powerpc/Makefile 2004-02-13 21:24:52.000000000 -0600
+++ libc23/sysdeps/powerpc/Makefile 2004-05-18 14:51:56.000000000 -0500
@@ -22,6 +22,17 @@
ifeq (yes,$(build-shared))
sysdep_routines += novmx-longjmp novmx-sigjmp
endif
+# Enable the assembler to for VMX instructions
+CPPFLAGS-setjmp.S += -Wa,-many
+CPPFLAGS-__longjmp.S += -Wa,-many
+endif
+
+ifeq ($(subdir),stdlib)
+# Enable the assembler to for VMX instructions
+CPPFLAGS-getcontext.S += -Wa,-many
+CPPFLAGS-makecontext.S += -Wa,-many
+CPPFLAGS-setcontext.S += -Wa,-many
+CPPFLAGS-swapcontext.S += -Wa,-many
endif
ifeq ($(subdir),csu)