[Bug rtl-optimization/32293] [4.3 Regression] internal compiler error: in do_SUBST, at combine.c:502
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 12 07:01:00 GMT 2007
------- Comment #9 from ubizjak at gmail dot com 2007-06-12 07:01 -------
Following patch should fix the ICE:
Index: combine.c
===================================================================
--- combine.c (revision 125636)
+++ combine.c (working copy)
@@ -5210,11 +5210,17 @@ simplify_if_then_else (rtx x)
if (true_code == EQ && true_val == const0_rtx
&& exact_log2 (nzb = nonzero_bits (from, GET_MODE (from))) >= 0)
- false_code = EQ, false_val = GEN_INT (nzb);
+ {
+ false_code = EQ;
+ false_val = GEN_INT (trunc_int_for_mode (nzb, GET_MODE (from)));
+ }
else if (true_code == EQ && true_val == const0_rtx
&& (num_sign_bit_copies (from, GET_MODE (from))
== GET_MODE_BITSIZE (GET_MODE (from))))
- false_code = EQ, false_val = constm1_rtx;
+ {
+ false_code = EQ;
+ false_val = constm1_rtx;
+ }
/* Now simplify an arm if we know the value of the register in the
branch and it is used in the arm. Be careful due to the potential
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubizjak at gmail dot com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-06-12 07:01:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32293
More information about the Gcc-bugs
mailing list