This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC fix build break caused by VMX instructions


Is it possible to do this via the .machine directives? Not sure what happens if when tries to assemble a .machine directive with an old binutils?

- kumar

On May 25, 2004, at 11:04 AM, Steve Munroe wrote:

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]