https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80221
--- Comment #9 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- You could further optimize the script to omit "." locations: if the "dg-*" directive actually is placed on the appropriate line already.