From: Alasdair Baird Date: Mon, 6 Jul 1998 21:19:17 +0000 (+0000) Subject: * jump.c (jump_optimize) Check for CONST_INT before using INTVAL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=702d7434a588f6436027d7794428b5bcbbcf3865;p=gcc.git * jump.c (jump_optimize) Check for CONST_INT before using INTVAL. From-SVN: r20962 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d26102d9f1..1aac5d0718a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 6 22:17:19 1998 Alasdair Baird + + * jump.c (jump_optimize) Check for CONST_INT before using INTVAL. + Mon Jul 6 22:14:31 1998 Richard Henderson (rth@cygnus.com) * regclass.c (allocate_reg_info): Initialize the entire reg_data diff --git a/gcc/jump.c b/gcc/jump.c index 389a6ff1e64..7184e11b77f 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1299,11 +1299,13 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) /* Check that the mask is a power of two, so that it can probably be generated with a shift. */ + && GET_CODE (temp3) == CONST_INT && exact_log2 (INTVAL (temp3)) >= 0)) && (reversep = 0, temp2 == const0_rtx)) || ((BRANCH_COST >= 2 || STORE_FLAG_VALUE == -1 || (STORE_FLAG_VALUE == 1 + && GET_CODE (temp2) == CONST_INT && exact_log2 (INTVAL (temp2)) >= 0)) && temp3 == const0_rtx && (reversep = can_reverse_comparison_p (temp4, insn)))