aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2021-07-24 12:53:39 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2021-08-04 16:18:07 +0200
commit96c82a16b2076891a9974d0f0e96a0b85fbc2df4 (patch)
treea99f13d6210d676eee99b0c461eb1f3c3c424f9e /gcc/gcov-io.c
parent9fcb8ec60302f5f110f94a885b618993c28d18d3 (diff)
downloadgcc-96c82a16b2076891a9974d0f0e96a0b85fbc2df4.zip
gcc-96c82a16b2076891a9974d0f0e96a0b85fbc2df4.tar.gz
gcc-96c82a16b2076891a9974d0f0e96a0b85fbc2df4.tar.bz2
Fix debug info for ignored decls at start of assembly
Ignored functions decls that are compiled at the start of the assembly have bogus line numbers until the first .file directive, as reported in PR101575. The corresponding binutils bug report is https://sourceware.org/bugzilla/show_bug.cgi?id=28149 The work around for this issue is to emit a dummy .file directive before the first function is compiled, unless another .file directive was already emitted previously. 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de> PR ada/101575 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy .file statement when needed.
Diffstat (limited to 'gcc/gcov-io.c')
0 files changed, 0 insertions, 0 deletions