diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2014-07-24 17:11:02 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2014-07-24 17:11:02 +0000 |
commit | ff46d64d829740dee098b0181d60db1231d90c09 (patch) | |
tree | 23523450e5e7f50219b97dbe687585e7113e9bd7 /gcc/testsuite | |
parent | c41e1ae6c0ee5face983669fc23e418be1faa1da (diff) | |
download | gcc-ff46d64d829740dee098b0181d60db1231d90c09.zip gcc-ff46d64d829740dee098b0181d60db1231d90c09.tar.gz gcc-ff46d64d829740dee098b0181d60db1231d90c09.tar.bz2 |
rs6000.c (rs6000_function_arg): If a float argument does not fit fully into floating-point registers...
gcc/
* config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
does not fit fully into floating-point registers, and there is still
space in the register parameter area, use GPRs to pass those parts
of the argument. Issue -Wpsabi note if any parameter is now treated
differently than before.
(rs6000_arg_partial_bytes): Update.
gcc/testsuite/
* gcc.target/powerpc/ppc64-abi-warn-1.c: New test.
From-SVN: r213015
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/ppc64-abi-warn-1.c | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d37c6a9..f64ab59 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + * gcc.target/powerpc/ppc64-abi-warn-1.c: New test. + +2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + * g++.dg/compat/struct-layout-1.exp: Load g++-dg.exp. 2014-07-24 Jiong Wang <jiong.wang@arm.com> diff --git a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-warn-1.c b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-warn-1.c new file mode 100644 index 0000000..c70c14c --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-warn-1.c @@ -0,0 +1,12 @@ +/* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */ +/* { dg-options "-mabi=elfv2" } */ + +struct f8 + { + float x[8]; + }; + +void test (struct f8 a, struct f8 b) /* { dg-message "note: the ABI of passing homogeneous float aggregates has changed" } */ +{ +} + |