From: Eric Botcazou Date: Sun, 29 Jun 2003 08:31:52 +0000 (+0200) Subject: re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed... X-Git-Tag: releases/gcc-3.4.0~5354 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df7fb8f96876acbd6ff0ea802ac985721076503b;p=thirdparty%2Fgcc.git re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed to unsigned char) PR optimization/11210 * fold-const (decode_field_reference): Revert 2003-06-26 patch. From-SVN: r68662 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6300e7e487e..4692b8f1e426 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-29 Eric Botcazou + + PR optimization/11210 + * fold-const (decode_field_reference): Revert 2003-06-26 patch. + 2003-06-29 Neil Booth * toplev.c (flag_dummy): Remove. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index b160a4ea0ebe..b35d733e220c 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2742,8 +2742,7 @@ decode_field_reference (exp, pbitsize, pbitpos, pmode, punsignedp, if (! INTEGRAL_TYPE_P (TREE_TYPE (exp))) return 0; - /* Signedness matters here. */ - STRIP_SIGN_NOPS (exp); + STRIP_NOPS (exp); if (TREE_CODE (exp) == BIT_AND_EXPR) {