re PR lto/64684 (wrong code by LTO on x86_64-linux-gnu)
authorRichard Biener <rguenther@suse.de>
Tue, 20 Jan 2015 13:26:19 +0000 (13:26 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 20 Jan 2015 13:26:19 +0000 (13:26 +0000)
commit2fd2ae3458ca760040ddb65a45f45fb2e89f2779
treeaf742886d1ebe018b2c605867c7bda3ec915fc88
parent7d56e747e271356ccaecfa2adbf2516c0c316649
re PR lto/64684 (wrong code by LTO on x86_64-linux-gnu)

2015-01-20  Richard Biener  <rguenther@suse.de>

PR ipa/64684
* ipa-reference.c (add_static_var): Inline ...
(analyze_function): ... here after splitting out from ...
(is_proper_for_analysis): ... this.

* gcc.dg/lto/pr64684_0.c: New testcase.
* gcc.dg/lto/pr64684_1.c: Likewise.
* gcc.dg/lto/pr64684_2.c: Likewise.
* gcc.dg/lto/pr64685_0.c: Likewise.
* gcc.dg/lto/pr64685_1.c: Likewise.

From-SVN: r219892
gcc/ChangeLog
gcc/ipa-reference.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr64684_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr64684_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr64684_2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr64685_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr64685_1.c [new file with mode: 0644]