aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}