https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102534
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With -O1 or -O2 (and -g2), there are no .loc for line 6 at all. There might not be anything that can be done for that case as inlining removes it ....