diff options
author | Andrew Pinski <apinski@apple.com> | 2004-01-22 02:44:37 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-01-21 18:44:37 -0800 |
commit | 5cc5eddc7c96bcff0a4fb8488c97e31d13f1aea1 (patch) | |
tree | bb7269b7ecd7e270364a4d88b2734bb658d2d9e3 /gcc | |
parent | 75ef0594a381f1760140e568d08e80fd685274e6 (diff) | |
download | gcc-5cc5eddc7c96bcff0a4fb8488c97e31d13f1aea1.zip gcc-5cc5eddc7c96bcff0a4fb8488c97e31d13f1aea1.tar.gz gcc-5cc5eddc7c96bcff0a4fb8488c97e31d13f1aea1.tar.bz2 |
re PR target/13785 (powerpc64 long long ICE)
2004-01-21 Andrew Pinski <apinski@apple.com>
PR target/13785
* gcc.dg/20030121-1.c: New test.
2004-01-21 Andrew Pinski <apinski@apple.com>
PR target/13785
* config/rs6000/rs6000.md (call_value): Force operand
1 not operand 0 into a register.
From-SVN: r76332
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20030121-1.c | 8 |
4 files changed, 20 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 812aca7..2017da3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-01-21 Andrew Pinski <apinski@apple.com> + + PR target/13785 + * config/rs6000/rs6000.md (call_value): Force operand + 1 not operand 0 into a register. + 2004-01-21 Kazu Hirata <kazu@cs.umass.edu> * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def, diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 28f5f25..723f06c 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -10181,7 +10181,7 @@ if (DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_DARWIN) - operands[0] = force_reg (Pmode, operands[0]); + operands[1] = force_reg (Pmode, operands[1]); else if (DEFAULT_ABI == ABI_AIX) { diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7ebdb67..433533f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-21 Andrew Pinski <apinski@apple.com> + + PR target/13785 + * gcc.dg/20030121-1.c: New test. + 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com> * gcc.dg/20030123-1.c: Add -fno-omit-frame-pointer option. Do not diff --git a/gcc/testsuite/gcc.dg/20030121-1.c b/gcc/testsuite/gcc.dg/20030121-1.c new file mode 100644 index 0000000..212d875 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20030121-1.c @@ -0,0 +1,8 @@ +/* { dg-do compile { target powerpc*-*-darwin* } } */ +/* { dg-options "-O2 -force_cpusubtype_ALL -mpowerpc64" } */ + +long long (*y)(int t); +long long get_alias_set (int t) +{ + return y(t); +} |