This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch [ppc] Complex values are returned differently depending on -mcpu=G5



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]