PR middle-end/25568
authorgrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Dec 2005 18:58:56 +0000 (18:58 +0000)
committergrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Dec 2005 18:58:56 +0000 (18:58 +0000)
       * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking
       rtl bootstrap failure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109064 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/combine.c

index 8433c93..71807d7 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-26  Graham Stott  <graham.stott@btinternet.com>
+
+       PR middle-end/25568
+       * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking
+       rtl bootstrap failure.
+
 2005-12-25  Kazu Hirata  <kazu@codesourcery.com>
 
        * final.c (compute_alignments): Make it static.
index 2482bbd..1361b10 100644 (file)
@@ -8919,6 +8919,7 @@ simplify_shift_const_1 (enum rtx_code code, enum machine_mode result_mode,
              && (new = simplify_const_binary_operation (ASHIFT, result_mode,
                                                         XEXP (varop, 1),
                                                         GEN_INT (count))) != 0
+             && GET_CODE (new) == CONST_INT
              && merge_outer_ops (&outer_op, &outer_const, PLUS,
                                  INTVAL (new), result_mode, &complement_p))
            {
@@ -8937,6 +8938,7 @@ simplify_shift_const_1 (enum rtx_code code, enum machine_mode result_mode,
              && (new = simplify_const_binary_operation (code, result_mode,
                                                         XEXP (varop, 1),
                                                         GEN_INT (count))) != 0
+             && GET_CODE (new) == CONST_INT
              && merge_outer_ops (&outer_op, &outer_const, XOR,
                                  INTVAL (new), result_mode, &complement_p))
            {