On 11/11/19 3:19 PM, Richard Biener wrote:
-static unsigned int limit_low[debug_counter_number_of_counters]; +static auto_vec<limit_tuple> *limits[debug_counter_number_of_counters] = {NULL};
Hm, apparently it's not working. I see a stack corruption when calling dbgcnt. I also explicitly called .create (2) for all vectors, but the ICE still happens. Anyway, I would probably go with the original patch. It's handy for me to also have limits[index] == NULL to indicate a counter that is not set. That's a different state from limits[index].is_empty() which means all previous intervals were popped and we should return false. Martin