diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2015-01-17 22:04:23 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2015-01-17 22:04:23 +0100 |
commit | ffafb4f0392d2c52f1de8ae738dfa29f7afbdc3b (patch) | |
tree | 4ba8dc498292a9eed4d5eea6965da9ec2492a68c /gcc | |
parent | 436bd91737b08f9221d0a08601721660a7fd2f81 (diff) | |
download | gcc-ffafb4f0392d2c52f1de8ae738dfa29f7afbdc3b.zip gcc-ffafb4f0392d2c52f1de8ae738dfa29f7afbdc3b.tar.gz gcc-ffafb4f0392d2c52f1de8ae738dfa29f7afbdc3b.tar.bz2 |
rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT to test for 32-bit ABIs, not !TARGET_POWERPC64.
* config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
to test for 32-bit ABIs, not !TARGET_POWERPC64.
From-SVN: r219805
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fc5fd06..1e28484 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org> + * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT + to test for 32-bit ABIs, not !TARGET_POWERPC64. + +2015-01-17 Segher Boessenkool <segher@kernel.crashing.org> + * config/rs6000/rs6000.c (rs6000_parallel_return): New function. (rs6000_function_value): Use it. Handle SCmode and TCmode as well, for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 551181b..80fcd65 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -11471,7 +11471,7 @@ rs6000_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p, /* _Decimal32 varargs are located in the second word of the 64-bit FP register for 32-bit binaries. */ - if (!TARGET_POWERPC64 + if (TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FPRS && TYPE_MODE (type) == SDmode) t = fold_build_pointer_plus_hwi (t, size); |