PR target/77587
commit5f036000a4af52257817e394a85f026de13191fc
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 14:36:38 +0000 (19 14:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 14:36:38 +0000 (19 14:36 +0000)
tree4965aa4d1c429a1406e32def5da33e5b1008c386
parenteee0cf09eed40a4533ff4792e9f3462864def63f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240232 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr77587.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr77587a.c [new file with mode: 0644]