aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2005-07-10 16:47:28 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2005-07-10 16:47:28 +0000
commitbd7d5043563d373a48da05c9290392bbf6cb56d8 (patch)
tree4a4ec3fa4c9643458ccd0fe0b0cfebf053700084 /gcc
parent9d598243bdee579f852c4120351534ecc2f83b48 (diff)
downloadgcc-bd7d5043563d373a48da05c9290392bbf6cb56d8.zip
gcc-bd7d5043563d373a48da05c9290392bbf6cb56d8.tar.gz
gcc-bd7d5043563d373a48da05c9290392bbf6cb56d8.tar.bz2
pa.c (pa_commutative_p): Make PLUS commutative when TARGET_NO_SPACE_REGS is true.
* pa.c (pa_commutative_p): Make PLUS commutative when TARGET_NO_SPACE_REGS is true. From-SVN: r101853
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pa/pa.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2217625..aebac49 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * pa.c (pa_commutative_p): Make PLUS commutative when
+ TARGET_NO_SPACE_REGS is true.
+
2005-07-09 Diego Novillo <dnovillo@redhat.com>
* Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index d0c2f93..b31a08c 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -7831,7 +7831,8 @@ static bool
pa_commutative_p (rtx x, int outer_code)
{
return (COMMUTATIVE_P (x)
- && ((outer_code != UNKNOWN && outer_code != MEM)
+ && (TARGET_NO_SPACE_REGS
+ || (outer_code != UNKNOWN && outer_code != MEM)
|| GET_CODE (x) != PLUS));
}