]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.c (pa_commutative_p): Make PLUS commutative when TARGET_NO_SPACE_REGS is true.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sun, 10 Jul 2005 16:47:28 +0000 (16:47 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 10 Jul 2005 16:47:28 +0000 (16:47 +0000)
* pa.c (pa_commutative_p): Make PLUS commutative when
TARGET_NO_SPACE_REGS is true.

From-SVN: r101853

gcc/ChangeLog
gcc/config/pa/pa.c

index 22176257b2c3359fafca5d1c0c78194b1d6534fc..aebac49df958b6adb16bf49bddd4af76ec4573a3 100644 (file)
@@ -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
index d0c2f93b49570e4bac5cdb514c0cc0e9f6e392ac..b31a08cd464347e93c6f87cf40cad699397b5c15 100644 (file)
@@ -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));
 }