From c55c061a89bf2afbfa4eeff80ec9f601d8e513db Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 13 Jul 2010 16:03:49 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/recog.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bee94900be3..bd339d7685c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-07-13 Jakub Jelinek + + 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. + 2010-07-13 Richard Guenther PR middle-end/44911 diff --git a/gcc/recog.c b/gcc/recog.c index 68485060204..368783ff570 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; -- 2.30.2