Commit b8d29c66 by Kenneth Zadeck Committed by Kenneth Zadeck

re PR middle-end/61111 (Infinite recursion between fold_build2_stat_loc and fold_binary_loc)

2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>

	PR middle-end/61111
	* fold-const.c (fold_binary_loc): Changed width of mask.

From-SVN: r210274
parent 04e137a1
2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
PR middle-end/61111
* fold-const.c (fold_binary_loc): Changed width of mask.
2014-05-09 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
......
......@@ -11358,7 +11358,7 @@ fold_binary_loc (location_t loc,
wide_int c3 = c1.and_not (c2);
for (w = BITS_PER_UNIT; w <= width; w <<= 1)
{
wide_int mask = wi::mask (width - w, false,
wide_int mask = wi::mask (w, false,
TYPE_PRECISION (type));
if (((c1 | c2) & mask) == mask && c1.and_not (mask) == 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment