https://sourceware.org/bugzilla/show_bug.cgi?id=28149
Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at sourceware dot org |amodra at gmail dot com --- Comment #4 from Alan Modra <amodra at gmail dot com> --- I can reproduce the comment #3 behaviour only when using -Wa,-gdwarf or similar gas options when using gcc-10. gcc-11 and gcc-12 pass -gdwarf-5 to gas. That seems to be the source of these problems, which is that -gdwarf* passed to gas means not only to select the DWARF level but also have gas generate its own DWARF line info. So why is gcc passing -gdwarf-5 to gas? That seems quite silly! Can't gas figure the dwarf level out itself? Note that current gas decides on dwarf5 if seeing a .file or .loc specifying file 0. -- You are receiving this mail because: You are on the CC list for the bug.