------- Comment #29 from jakub at gcc dot gnu dot org  2006-02-18 15:24 -------
Yes, fairly easily.
Just add another pass, probably into tree-object-size.c, where you:
init_object_sizes ();
and for each ARRAY_REF compute objsz = compute_builtin_object_size
(TREE_OPERAND (array_ref, 0), 0) and if (objsz != (unsigned HOST_WIDE_INT) -1
&&
compare_tree_int (TREE_OPERAND (array_ref, 1), objsz)) >= 0)
warning (...);
When done with the pass, call fini_object_sizes ();.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8268

Reply via email to