diff options
author | David Edelsohn <edelsohn@gnu.org> | 2001-07-13 15:05:51 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2001-07-13 11:05:51 -0400 |
commit | 1568d79b849057c16e3e4796b4c2b4335bb3a4ca (patch) | |
tree | 2c0b31c8ae90c95f18c468c4542d5d93e70a5a09 /gcc | |
parent | 8e1ab0fe1de986e393db8b5912bfea27d0f6ab09 (diff) | |
download | gcc-1568d79b849057c16e3e4796b4c2b4335bb3a4ca.zip gcc-1568d79b849057c16e3e4796b4c2b4335bb3a4ca.tar.gz gcc-1568d79b849057c16e3e4796b4c2b4335bb3a4ca.tar.bz2 |
* combine.c (try_combine): Ensure const_int pow2 is positive.
From-SVN: r43983
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/combine.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c80f159..57ea335 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-07-13 David Edelsohn <edelsohn@gnu.org> + + * combine.c (try_combine): Ensure const_int pow2 is positive. + 2001-07-13 Hartmut Penner <hpenner@de.ibm.com> * config.gcc: Add configuration for s/390. diff --git a/gcc/combine.c b/gcc/combine.c index 6972d85..2557d75 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -2235,6 +2235,7 @@ try_combine (i3, i2, i1, new_direct_jump_p) appeared to be a memory address. This is a kludge. */ if (split_code == MULT && GET_CODE (XEXP (*split, 1)) == CONST_INT + && INTVAL (XEXP (*split, 1)) > 0 && (i = exact_log2 (INTVAL (XEXP (*split, 1)))) >= 0) { SUBST (*split, gen_rtx_ASHIFT (split_mode, |