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

Reply via email to