This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] powerpc64-linux bi-arch support
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Aug 2003 10:10:05 +0930
- Subject: Re: [PATCH] powerpc64-linux bi-arch support
- References: <20030527115337.GF24872@sunsite.ms.mff.cuni.cz><200308192007.QAA24228@makai.watson.ibm.com>
On Tue, Aug 19, 2003 at 04:07:39PM -0400, David Edelsohn wrote:
> The assignment never will be executed because DEFAULT_ABI already is
> ABI_AIX, but GCC correctly complains about an invalid lvalue.
Yes, I'd noticed this myself but hadn't applied a fix since mainline
currently can only be configured biarch. The correct fix is
Index: gcc/config/rs6000/linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux64.h,v
retrieving revision 1.48
diff -u -p -r1.48 linux64.h
--- gcc/config/rs6000/linux64.h 16 Jul 2003 11:52:51 -0000 1.48
+++ gcc/config/rs6000/linux64.h 20 Aug 2003 00:38:26 -0000
@@ -69,7 +69,7 @@
{ \
if (DEFAULT_ABI != ABI_AIX) \
{ \
- DEFAULT_ABI = ABI_AIX; \
+ rs6000_current_abi = ABI_AIX; \
error (INVALID_64BIT, "call"); \
} \
if (TARGET_RELOCATABLE) \
--
Alan Modra
IBM OzLabs - Linux Technology Centre