------- Additional Comments From jakub at gcc dot gnu dot org 2005-05-09 15:26 ------- Do we really have to call walk_subobject_offsets on every single array element? Couldn't we delay that to the time anybody would be looking at that info? Say extend the offsets splay tree, so that there would not only be INTEGER_CST key nodes representing particular offsets, but also nodes representing an offset interval, with value a TREE_VEC that could then be used to recreate that information (i.e. contain enough info to call walk_subobject_offsets in a loop with record_subobject_offset fn). Instead of calling walk_subobject_offsets here 1 << 21 times, we could e.g. call it on the first and last array element only and represent the middle of the array (if any) with an interval.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21308