2018-09-26 Richard Biener <rguenther@suse.de>
commit42a31e6d54e0ca97356e8ef5529c4b39799180a6
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2018 07:05:01 +0000 (26 07:05 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2018 07:05:01 +0000 (26 07:05 +0000)
treebe2c8d41c2eb5a7a515dbb0ce88e4ddfed55a65c
parente1b5fa4a0e2a59dd460b5ac11c587d520cb34b8e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264594 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/tree-inline.c