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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jan  8 09:58:04 2019
New Revision: 267688

URL: https://gcc.gnu.org/viewcvs?rev=267688&root=gcc&view=rev
Log:
        Backported from mainline
        2018-11-26  Jakub Jelinek  <ja...@redhat.com>

        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.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/debug/dwarf2/pr86900.C
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/dwarf2out.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to