https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77587
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 7 22:29:01 2016 New Revision: 243383 URL: https://gcc.gnu.org/viewcvs?rev=243383&root=gcc&view=rev Log: Backported from mainline 2016-09-19 Jakub Jelinek <ja...@redhat.com> Jan Hubicka <j...@suse.cz> PR target/77587 * cgraph.c (cgraph_node::rtl_info): Pass &avail to ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE. Call ultimate_alias_target just once, not up to 4 times. * gcc.dg/pr77587.c: New test. * gcc.dg/pr77587a.c: New file. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr77587.c branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr77587a.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/cgraph.c branches/gcc-6-branch/gcc/testsuite/ChangeLog