[PATCH] Make inlining consistent in LTO and non-LTO mode (PR target/71991).

Martin Liška mliska@suse.cz
Wed Jun 28 13:12:00 GMT 2017


Hi.

Following patch makes non-LTO and LTO mode to behave same.
Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
The test-case works on x86_64-linux-gnu.

Ready to be installed?
Martin

gcc/testsuite/ChangeLog:

2017-06-28  Martin Liska  <mliska@suse.cz>

	PR target/71991
	* gcc.dg/torture/pr71991.c: New test.

gcc/ChangeLog:

2017-06-28  Martin Liska  <mliska@suse.cz>

	PR target/71991
	* config/i386/i386.c (ix86_can_inline_p): Make inlining consistent
	in LTO and non-LTO mode.
---
 gcc/config/i386/i386.c                 |  5 +++--
 gcc/testsuite/gcc.dg/torture/pr71991.c | 12 ++++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/torture/pr71991.c


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-inlining-consistent-in-LTO-and-non-LTO-mode-PR-.patch
Type: text/x-patch
Size: 1241 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170628/4e664f07/attachment.bin>


More information about the Gcc-patches mailing list