re PR ipa/77587 (C compiler produces incorrect stack alignment with __attribute__...
authorJakub Jelinek <jakub@redhat.com>
Mon, 19 Sep 2016 14:36:38 +0000 (16:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 19 Sep 2016 14:36:38 +0000 (16:36 +0200)
commitfc15d9ecb432173f2a17c58352d4b70c1ee049e4
tree4965aa4d1c429a1406e32def5da33e5b1008c386
parent3c9f5092c6d30a459e06b7db3f0796a1175e2ecc
re PR ipa/77587 (C compiler produces incorrect stack alignment with __attribute__((weak)))

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.

Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r240232
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]