[PATCH] PPC clean from powerpc-cpu merge

Steven Munroe munroesj@us.ibm.com
Tue Jul 10 19:58:00 GMT 2007


Realized that gcc defaults to -mcpu=common/powerpc64 which assumes this
ISA V1.0 and the old style branch hints.  The ISA V2.0+ introduced the
new style branch hints.
(http://www.power.org/resources/downloads/PowerISA_Public.pdf page 28)

This can be a problem as the --with-cpu= configure only asserts -mcpu=
to gcc for "c" files (not *.S" assembler files). The encoding of the ISA
V1.0 branch hints when used on ISA V2.0+ hardware results in "No branch
hint given" (effectively ignored). To make the branch hints effective we
need to either pass -mcpu=power4 to as or insert the appropriate
".machine power#" statement in the source. The attached patch takes the
.machine approach.

Also found that ./sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S was
missing and include for math_ldbl_opt.h which hosed the version symbol
generation.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-cpu-20070707.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070710/2d927de0/attachment.txt>


More information about the Libc-alpha mailing list