[PATCH] Remove unreachable nodes before IPA profile pass (PR ipa/87706).

Martin Liška mliska@suse.cz
Thu Nov 8 08:25:00 GMT 2018


Hi.

In order to fix the warnings mentioned in the PR, we need
to run remove_unreachable_nodes after early tree passes. That's
however possible only within a IPA pass. Thus I'm calling that
before the profile PASS.

Patch survives regression tests on ppc64le-linux-gnu and majority
of warnings are gone in profiledbootstrap.

Ready for trunk?
Thanks,
Martin

gcc/ChangeLog:

2018-11-08  Martin Liska  <mliska@suse.cz>

	* tree-profile.c: Run TODO_remove_functions before "profile"
	pass in order to remove dead functions that will trigger
	-Wmissing-profile.
---
 gcc/tree-profile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-unreachable-nodes-before-IPA-profile-pass-PR-.patch
Type: text/x-patch
Size: 433 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181108/2a33d6b5/attachment.bin>


More information about the Gcc-patches mailing list