diff mbox series

Fix build error

Message ID alpine.LSU.2.20.1711071351320.12252@zhemvz.fhfr.qr
State New
Headers show
Series Fix build error | expand

Commit Message

Richard Biener Nov. 7, 2017, 12:52 p.m. UTC
Recent commit to match.pd broke the build.

Fixed as follows, committed as obvious after build went past error.

Richard.

2017-11-07  Richard Biener  <rguenther@suse.de>

	* match.pd: Fix build.
diff mbox series

Patch

Index: gcc/match.pd
===================================================================
--- gcc/match.pd	(revision 254497)
+++ gcc/match.pd	(working copy)
@@ -615,7 +615,7 @@  DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
 (simplify
  (lshift integer_onep@0 (minus@1 INTEGER_CST@2 @3))
   (if (INTEGRAL_TYPE_P (type)
-       && wi::eq_p (@2, TYPE_PRECISION (type) - 1)
+       && wi::eq_p (wi::to_wide (@2), TYPE_PRECISION (type) - 1)
        && single_use (@1))
    (if (TYPE_UNSIGNED (type))
      (rshift (lshift @0 @2) @3)