This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10118] GLIBC fails to build on POWER6 after binutils change
- From: "rsa at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 May 2009 01:16:21 -0000
- Subject: [Bug libc/10118] GLIBC fails to build on POWER6 after binutils change
- References: <20090430192735.10118.cseo@linux.vnet.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rsa at us dot ibm dot com 2009-05-07 01:16 -------
Created an attachment (id=3927)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=3927&action=view)
asflags.diff : patch to propagate -mcpu=CPU to the compiler for --with-cpu=CPU
when compiling .S files.
When GLIBC is configured using --with-cpu=CPU this patch set will cause -mcpu=
CPU to be emitted to the compiler when compiling .S files. Currently -mcpu-CPU
is only emitted for .c files.
I chose -mcpu=CPU vs. -Wa,-mCPU because -mcpu=CPU causes TARGET_CMPB to be set
in the compiler and it will then emit an _ARCH_CPU definition as well as set
the assembler in CPU insn mode. -Wa,-mCPU will only set the assembler into CPU
isns mode.
I've tested this for a --with-cpu=power6 build and it fixes the problem.
The reason we didn't catch this until recently is because the assembler was
recently changed to only recognize power6 instructions when in power6 mode.
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #3920 is|0 |1
obsolete| |
http://sourceware.org/bugzilla/show_bug.cgi?id=10118
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.