http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53682
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-15 12:00:45 UTC --- Possible the second two calls of promote_debug_loc should be replaced by a loop over the locs, looking for the right l->loc that -g0 would have created in that case. Anyway, it needs to be debugged how exactly -g0 vs. -g behaves in these cases.