aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-07-13 16:03:49 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-07-13 16:03:49 +0200
commitc55c061a89bf2afbfa4eeff80ec9f601d8e513db (patch)
treeb2476214f08f676b7b7735bcdf5284c77c0a4c34 /gcc/recog.c
parent85e5e340bed7df53a521af7e578d7faf830f40c1 (diff)
downloadgcc-c55c061a89bf2afbfa4eeff80ec9f601d8e513db.zip
gcc-c55c061a89bf2afbfa4eeff80ec9f601d8e513db.tar.gz
gcc-c55c061a89bf2afbfa4eeff80ec9f601d8e513db.tar.bz2
re PR testsuite/44701 (PR44492 fix broke gcc.target/powerpc/asm-es-2.c)
PR testsuite/44701 * recog.c (constrain_operands): Allow side-effects in memory operands if either < or > constraint is used, rather than if both < and > is used. From-SVN: r162142
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/recog.c b/gcc/recog.c
index 6848506..368783f 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -2742,7 +2742,7 @@ constrain_operands (int strict)
case PRE_MODIFY:
case POST_MODIFY:
if (strchr (recog_data.constraints[opno], '<') == NULL
- || strchr (recog_data.constraints[opno], '>')
+ && strchr (recog_data.constraints[opno], '>')
== NULL)
return 0;
break;