]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR ipa/77587 (C compiler produces incorrect stack alignment with __attri...
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 07:26:00 +0000 (09:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 07:26:00 +0000 (09:26 +0200)
commit3a3638198caab896fc23e012843082121106f7ea
tree3bb3daa6591e77ef2710a41f953989b574bf74b2
parentce4c1bf01a651b83ed3075bab6f1b129425ca426
backport: re PR ipa/77587 (C compiler produces incorrect stack alignment with __attribute__((weak)))

Backported from mainline
2016-09-19  Jakub Jelinek  <jakub@redhat.com>
    Jan Hubicka  <jh@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.

From-SVN: r248609
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]