re PR tree-optimization/42508 (wrong code with "-O1 -fipa-sra")
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 Jan 2010 08:40:50 +0000 (09:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Jan 2010 08:40:50 +0000 (09:40 +0100)
commit566f27e42ca00f65d101e6a7b0096554a0cc452d
tree53dddb0634d26df31297a6db047145d050b904b2
parent11492349fe6f6a568b3aecdc1a503f80b8848070
re PR tree-optimization/42508 (wrong code with "-O1 -fipa-sra")

PR tree-optimization/42508
* tree-sra.c (convert_callers): Check for recursive call
by comparing cgraph nodes instead of decls.
(modify_function): Call ipa_modify_formal_parameters also
on all same_body aliases.

* g++.dg/opt/pr42508.C: New test.

* cgraphunit.c (cgraph_materialize_all_clones): Compare
cgraph nodes when checking for same_body aliases.

From-SVN: r155640
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr42508.C [new file with mode: 0644]
gcc/tree-sra.c