Re: [PATCH] Fix PR61893, constant folding breaking -ftrapv

2014-07-30 Thread Jeff Law
On 07/29/14 02:35, Richard Biener wrote: The following fixes the second bug you'll hit very fast when writing testcases for -ftrapv (maybe not so often in "real" scenarios). There are several places in the optimization pipeline where after constant folding we fail to generate trapping instructi

[PATCH] Fix PR61893, constant folding breaking -ftrapv

2014-07-29 Thread Richard Biener
The following fixes the second bug you'll hit very fast when writing testcases for -ftrapv (maybe not so often in "real" scenarios). There are several places in the optimization pipeline where after constant folding we fail to generate trapping instructions. The simplest solution as implemented