tree-inline.c (remap_gimple_stmt): Force input_location on the new statement if id...
commitfb18c0c9fe26a77541dd63ca351832194969bef9
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 28 Jun 2018 06:21:13 +0000 (28 06:21 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 28 Jun 2018 06:21:13 +0000 (28 06:21 +0000)
tree48aa3b3611869946b4547113caed9fe78e209832
parent09e1386fd0c6de42272edc9bb0a4b7c2e193b7a7
tree-inline.c (remap_gimple_stmt): Force input_location on the new statement if id->reset_location is true.

* tree-inline.c (remap_gimple_stmt): Force input_location on the new
statement if id->reset_location is true.
(copy_edges_for_bb): Do not set goto_locus on the new edges if
id->reset_location is true.
(copy_phis_for_bb): Force input_location on the arguments if
id->reset_location is true.
(expand_call_inline): Set id->reset_location if DECL_IGNORED_P
is set on the function to be inlined.
* tree-inline.h (struct copy_body_data): Move remapping_type_depth and
prevent_decl_creation_for_types fields up and add reset_location field.

From-SVN: r262207
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/debug15.adb [new file with mode: 0644]
gcc/tree-inline.c
gcc/tree-inline.h