https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86456
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-debug --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- While the small number of -gdwarf-5 testcases now work building execute.exp with -flto -g -gdwarf-5 still breaks with /tmp/ccPLq2Jj.s: Assembler messages:^M /tmp/ccPLq2Jj.s:975: Error: symbol `.Ldebug_loc1' is already defined^M (at least) So I'm going to poke a bit more (tomorrow). The question is what we expect to be contained in .debug_line_str for a simple testcase. Oh, the above assembler failures only occur with -fno-use-linker-plugin (and the execute.exp torture _appends_ the torture options, so RUNTESTFLAGS="--target_board=unix/-flto/-g/-gdwarf-5/-fuse-linker-plugin execute.exp" still ends up with -fno-use-linker-plugin)