re PR c++/86900 (-gdwarf-5 -O2 -ffunction-sections = assembler error)
authorJakub Jelinek <jakub@redhat.com>
Mon, 26 Nov 2018 21:24:00 +0000 (22:24 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 26 Nov 2018 21:24:00 +0000 (22:24 +0100)
commit14fac4364c49414c386efe334533740555bfdf41
tree812b66a91be99c09eccb6c134e6922742b9b3dc1
parent3cf50fcdac65b4174270915d5024fced130b7133
re PR c++/86900 (-gdwarf-5 -O2 -ffunction-sections = assembler error)

PR c++/86900
* dwarf2out.c (secname_for_decl): For functions with
DECL_SECTION_NAME if in_cold_section_p, try to return
current_function_section's name if it is a named section.

* g++.dg/debug/dwarf2/pr86900.C: New test.

From-SVN: r266485
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/pr86900.C [new file with mode: 0644]