This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix powerpc asm_cpu.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 23 Jun 2004 12:19:37 +0930
- Subject: Re: Fix powerpc asm_cpu.
- References: <20040520014921.GI2559@bubble.modra.org> <20040622170300.GA4613@us.ibm.com>
On Tue, Jun 22, 2004 at 10:03:00AM -0700, Janis Johnson wrote:
> On Thu, May 20, 2004 at 11:19:21AM +0930, Alan Modra wrote:
> > * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
> > for power5 and rs64a. Correct condition for default. Correct power3,
> > 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
>
> This patch went into mainline and the 3.4 and hammer-3.3 branches last
> week. The use of -many requires binutils-2.15 with a biarch GCC for
> powerpc64-linux; as 2.14.90.0.4, the installed assembler on RHEL3,
> complains about invalid opcodes with -m64 -many. Is this expected?
> If so, the new dependency ought to be documented.
Thanks Janis,
That would be due to a gas bug I fixed on 2003-09-04. Prior to that,
-many *replaced* any previous cpu selection rather than adding to it,
which meant you effectively lost the -a64. 2.14.90.0.7 has this fix,
but I think it's appropriate to specify 2.15 as otherwise you miss out
on ld --as-needed support.
* doc/install.texi (powerpc*-*-linux-gnu*): Rename from
powerpc-*-linux-gnu*. Require binutils-2.15.
Index: gcc/doc/install.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/install.texi,v
retrieving revision 1.293
diff -u -p -r1.293 install.texi
--- gcc/doc/install.texi 16 Jun 2004 12:34:22 -0000 1.293
+++ gcc/doc/install.texi 23 Jun 2004 02:38:11 -0000
@@ -2195,7 +2195,7 @@ GNU Compiler Collection on your machine.
@item
@uref{#powerpc-*-elf,,powerpc-*-elf, powerpc-*-sysv4}
@item
-@uref{#powerpc-*-linux-gnu*,,powerpc-*-linux-gnu*}
+@uref{#powerpc*-*-linux-gnu*,,powerpc*-*-linux-gnu*}
@item
@uref{#powerpc-*-netbsd*,,powerpc-*-netbsd*}
@item
@@ -3311,10 +3311,10 @@ PowerPC system in big endian mode, runni
@html
<hr />
@end html
-@heading @anchor{powerpc-*-linux-gnu*}powerpc-*-linux-gnu*
+@heading @anchor{powerpc*-*-linux-gnu*}powerpc*-*-linux-gnu*
You will need
-@uref{ftp://ftp.kernel.org/pub/linux/devel/binutils,,binutils 2.13.90.0.10}
+@uref{ftp://ftp.kernel.org/pub/linux/devel/binutils,,binutils 2.15}
or newer for a working GCC@.
@html
--
Alan Modra
IBM OzLabs - Linux Technology Centre