[Bug debug/87428] "Missed" inline instances cause bogus DWARF to be emitted

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 26 07:05:00 GMT 2018


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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Sep 26 07:05:01 2018
New Revision: 264594

URL: https://gcc.gnu.org/viewcvs?rev=264594&root=gcc&view=rev
Log:
2018-09-26  Richard Biener  <rguenther@suse.de>

        PR debug/87428
        PR debug/87362
        * tree-inline.c (expand_call_inline): When the location
        of the call is UNKNOWN_LOCATION use DECL_SOURCE_LOCATION
        or BUILTINS_LOCATION for the BLOCK_SOURCE_LOCATION of
        the inserted BLOCK to make inlined_function_outer_scope_p
        recognize it.
        * dwarf2out.c (add_call_src_coords_attributes): Do not add
        coords for reserved locations.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/tree-inline.c


More information about the Gcc-bugs mailing list