This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch [ppc] Complex values are returned differently depending on -mcpu=G5
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Fariborz Jahanian <fjahanian at apple dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 23 Sep 2005 13:05:53 -0400
- Subject: Re: patch [ppc] Complex values are returned differently depending on -mcpu=G5
- References: <BBCA7204-15BC-4668-86C2-96E15FD935A0@apple.com>
On Sep 23, 2005, at 1:02 PM, Fariborz Jahanian wrote:
Complex values are returned differently depending on -mcpu=G5 (or
-mpowerpc64).
Test case is: gcc.c-torture/execute/960512-1.c
__complex__
double f ()
In 32-bit mode, the complex value is returned in r3:r4,r5:r6. In
-mcpu=G5
mixed mode, the value is returned in r3,r4. ABI breakage.
Attached patch, dejagnu tested in apple-ppc-darwin's branch (in
-mcpu=G5 mode) fixes this problem.
OK for FSF mainline?
This is also FSF PR 23847.
Thanks,
Andrew Pinski