https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362
--- Comment #17 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 <rguent...@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