https://sourceware.org/bugzilla/show_bug.cgi?id=23941
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tom de Vries <vr...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6cb7f6d92e4508274fab69c7acbbb961fc45dc70 commit 6cb7f6d92e4508274fab69c7acbbb961fc45dc70 Author: Tom de Vries <tdevr...@suse.de> Date: Wed Feb 1 01:13:37 2023 +0100 [gas] Emit v2 .debug_line for -gdwarf-2 Currently, when using -gdwarf-2, gas emits a v3 .debug_line contribution. Fix this by emitting a v2 .debug_line contribution instead. gas/ChangeLog: 2023-01-31 Tom de Vries <tdevr...@suse.de> PR 23941 * dwarf2dbg.c (DWARF2_LINE_VERSION): Set to 2 for -gdwarf-2. (DWARF2_LINE_OPCODE_BASE): Handle DWARF2_LINE_VERSION == 2. (dwarf2_directive_loc): Bump dwarf_level when encountering v3 .loc options. (out_debug_line): Don't output v3 standard opcodes for v2. * testsuite/gas/i386/debug1.d: Update. * testsuite/gas/i386/dwarf2-line-1.d: Update. * testsuite/gas/i386/dwarf2-line-4.d: Update. -- You are receiving this mail because: You are on the CC list for the bug.