[Bug rtl-optimization/37889] [4.3/4.4 Regression] SEGV, conditional execution proactively executed the false arm.
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 22 16:29:00 GMT 2008
------- Comment #5 from jakub at gcc dot gnu dot org 2008-10-22 16:28 -------
If the array has known bounds, we could say that accesses above bounds trap
and likely it wouldn't hurt much. But for
extern const char *reg_names[];
where we don't know the bounds, we'd have to assume the worst, i.e. that all
indexes may trap. I'm afraid that's going to penalize quite some code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37889
More information about the Gcc-bugs
mailing list