From: John David Anglin Date: Sun, 10 Jul 2005 16:47:28 +0000 (+0000) Subject: pa.c (pa_commutative_p): Make PLUS commutative when TARGET_NO_SPACE_REGS is true. X-Git-Tag: misc/cutover-cvs2svn~1815 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd7d5043563d373a48da05c9290392bbf6cb56d8;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22176257b2c3..aebac49df958 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-07-10 John David Anglin + + * pa.c (pa_commutative_p): Make PLUS commutative when + TARGET_NO_SPACE_REGS is true. + 2005-07-09 Diego Novillo * 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 d0c2f93b4957..b31a08cd4643 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)); }