re PR middle-end/49958 (fold performs invalid association)
2011-08-03 Richard Guenther <rguenther@suse.de>
PR middle-end/49958
* fold-const.c (fold_binary_loc): Only associate
(+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
overflow wraps.
* gcc.dg/torture/pr49958.c: New testcase.
From-SVN: r177270
Showing
gcc/testsuite/gcc.dg/torture/pr49958.c
0 → 100644
Please
register
or
sign in
to comment