[Bug debug/98708] [11 Regression] cxx11-ios_failure-lt.s:36733: Error: file number less than one by r11-6755

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 17 12:25:47 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98708

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Bootstrap is fine if one uses older binutils.
The thing is that cxx11-ios_failure* is built by hand first with -g -O2 -S,
then the assembly is modified by a script and then it is assembled, and as
older assemblers would fail miserably on assembling .s file containing
.debug_info etc. with -g (-gdwarf-2 passed to assembler), the assembly is
invoked with -g -O2 -c -g0.
I really think this should be fixed solely on the assembler side, and
if needed, we can add a temporary workaround, I guess compiling
cxx11-ios_failure* with -gno-as-loc-support could fix that.


More information about the Gcc-bugs mailing list