This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/81307] [8 regression] g++.dg/debug/debug9.C -gstabs FAILs


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Nov 27 08:48:56 2017
New Revision: 255161

URL: https://gcc.gnu.org/viewcvs?rev=255161&root=gcc&view=rev
Log:
        PR debug/81307
        * dbxout.c (lastlineno): New variable.
        (dbx_debug_hooks): Use dbxout_switch_text_section as
        switch_text_section debug hook.
        (dbxout_function_end): Switch to current_function_section
        rather than function_section.  If crtl->has_bb_partition,
        output just one N_FUN, depending on in_cold_section_p.
        (dbxout_source_line): Remember last lineno in lastlineno.
        (dbxout_switch_text_section): New function.
        (dbxout_function_decl): Adjust dbxout_block caller.
        (dbx_block_with_cold_children): New function.
        (dbxout_block): Return true if any LBRAC/RBRAC have been
        emitted.  Use dbx_block_with_cold_children at depth == 0
        in second partition.  Add PARENT_BLOCKNUM argument, pass
        it optionally adjusted to children.  Output LBRAC/RBRAC
        around recursive call only if the block is in the current
        partition, if not and anything was output, emit empty
        range LBRAC/RBRAC.
        * final.c (final_scan_insn): Compute cold_function_name
        before calling switch_text_section debug hook.  Call
        that hook even if dwarf2out_do_frame if not emitting
        dwarf debug info.

        * g++.dg/debug/debug9.C: Remove -fno-reorder-blocks-and-partition
        workaround.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dbxout.c
    trunk/gcc/final.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/debug/debug9.C

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]