[Bug rtl-optimization/50762] ICE: in extract_insn, at recog.c:2137 (unrecognizable insn)
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 10 13:34:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50762
--- Comment #13 from Uros Bizjak <ubizjak at gmail dot com> 2011-11-10 13:28:37 UTC ---
A shot-in-the-dark patch that fixes compilation:
Index: simplify-rtx.c
===================================================================
--- simplify-rtx.c (revision 181252)
+++ simplify-rtx.c (working copy)
@@ -1463,9 +1463,9 @@ simplify_const_unary_operation (enum rtx_code code
break;
case ZERO_EXTEND:
- /* When zero-extending a CONST_INT, we need to know its
- original mode. */
- gcc_assert (op_mode != VOIDmode);
+ if (op_mode == VOIDmode)
+ op_mode = mode;
+ op_width = GET_MODE_PRECISION (op_mode);
if (op_width == HOST_BITS_PER_WIDE_INT)
{
/* If we were really extending the mode,
More information about the Gcc-bugs
mailing list