[patch] Do not leak location information during inlining (2nd try)
Eric Botcazou
ebotcazou@adacore.com
Thu Jun 28 10:28:00 GMT 2018
> More references to input_location aren't ideal. But I don't think
> that's a strong enough reason to reject.
This can be avoided relatively easily though, patch to that effect attached.
Tested on x86-64/Linux, OK for the mainline?
* tree-inline.c (remap_gimple_stmt): Replace input_location with
gimple_location (id->call_stmt) throughout.
(copy_phis_for_bb): Likewise.
(expand_call_inline): Likewise. Tweak formatting.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 3098 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180628/11670a12/attachment.bin>
More information about the Gcc-patches
mailing list