[Bug tree-optimization/94734] [10 Regression] Program crashes when compiled with -O2 since r10-1892-gb9ef6a2e04bfd013

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 24 07:52:20 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94734

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
In particular tree_could_trap_p woudl consider the load possibly trapping
due to the variable indexing but the patch seems to override that which
I agree is bogus.  I think we need to revert it and re-implement for GCC 11.
All testcases contain a dominating load in the condition and what we _can_
do is treat loads of stack variables the same as stores as far as
non-trappingness is concerned.


More information about the Gcc-bugs mailing list