This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/37889] [4.3/4.4 Regression] SEGV, conditional execution proactively executed the false arm.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]