]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cgraphbuild.cc
re PR tree-optimization/57294 (ice in remove_described_reference)
authorMartin Jambor <mjambor@suse.cz>
Fri, 24 May 2013 15:35:21 +0000 (17:35 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 24 May 2013 15:35:21 +0000 (17:35 +0200)
commit8233805962efaca360502989a390aef6825666ab
tree43bacd6846c8b3eb43f0268cb4dce94a7f027c38
parent1ccd4874c93be4a4cad60e0324b27a953a7417ed
re PR tree-optimization/57294 (ice in remove_described_reference)

2013-05-24  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/57294
* cgraph.h (ipa_record_stmt_references): Declare.
* cgraphbuild.c (ipa_record_stmt_references): New function.
(build_cgraph_edges): Use ipa_record_stmt_references.
(rebuild_cgraph_edges): Likewise.
(cgraph_rebuild_references): Likewise.
* ipa-prop.c (ipa_modify_call_arguments): Discard references
associated with the old statement and build references from the
newly built statements.
* ipa-ref.c (ipa_remove_stmt_references): New function.
* ipa-ref.h (ipa_remove_stmt_references): Declare.

testsuite/
* gcc.dg/ipa/pr57294.c: New test.

From-SVN: r199299
gcc/ChangeLog
gcc/cgraph.h
gcc/cgraphbuild.c
gcc/ipa-prop.c
gcc/ipa-ref.c
gcc/ipa-ref.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr57294.c [new file with mode: 0644]