This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, committed] aix_struct_return and Altivec vrsave
- From: Adam Nemet <anemet at lnxw dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 24 May 2005 23:48:20 -0700
- Subject: Re: [PATCH, committed] aix_struct_return and Altivec vrsave
- References: <200505171430.j4HEUm026058@makai.watson.ibm.com>
David Edelsohn <dje@watson.ibm.com> writes:
> * config/rs6000/rs6000.opt (maix-struct-return): Convert to
> independent variable. Report mxl-compat.
David,
This breaks LynxOS. CC1_SPEC under config/rs6000/lynx.h uses
-mno-svr4-struct-return but msvr4-struct-return is RejectNegative now.
Is the patch below OK to change it to pass -maix-struct-return
instead?
I regression tested on powerpc-lynx-lynxos. There are some new FAILs
and new PASSes since last week. The test gcc.dg/struct-ret-libc.c
that originally prompted -mno-svr4-struct-return is a PASS.
Adam
2005-05-24 Adam Nemet <anemet@lnxw.com>
* config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
of -mno-svr4-struct-return.
Index: lynx.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/lynx.h,v
retrieving revision 1.18
diff -u -p -r1.18 lynx.h
--- lynx.h 21 Apr 2005 07:35:09 -0000 1.18
+++ lynx.h 24 May 2005 18:38:43 -0000
@@ -49,7 +49,7 @@
#define CC1_SPEC \
"%{G*} %{mno-sdata:-msdata=none} \
%{maltivec:-mabi=altivec} \
- -mno-svr4-struct-return"
+ -maix-struct-return"
#undef ASM_SPEC
#define ASM_SPEC \