[Bug c/8268] no compile time array index checking
mueller at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 18 12:39:00 GMT 2006
------- Comment #21 from mueller at gcc dot gnu dot org 2006-02-18 12:39 -------
hmm, thanks. it should have looked like this:
+ case TRY_FINALLY_EXPR:
+ case TRY_CATCH_EXPR:
+ array_offset_warning (&TREE_OPERAND (t, 0));
+ array_offset_warning (&TREE_OPERAND (t, 1));
+ break;
+ case CATCH_EXPR:
+ array_offset_warning (&CATCH_BODY (t));
+ break;
Anyway, I agree that the SSA pass after all const folding has happened is a
much better approach than my quick hack, as long as it isn't significantly
slower (compile time). I'm currently trying Falk's patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8268
More information about the Gcc-bugs
mailing list