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,

Reply via email to