diff options
author | Martin Jambor <mjambor@suse.cz> | 2013-05-24 17:35:21 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2013-05-24 17:35:21 +0200 |
commit | 8233805962efaca360502989a390aef6825666ab (patch) | |
tree | 43bacd6846c8b3eb43f0268cb4dce94a7f027c38 /gcc/cgraph.h | |
parent | 1ccd4874c93be4a4cad60e0324b27a953a7417ed (diff) | |
download | gcc-8233805962efaca360502989a390aef6825666ab.zip gcc-8233805962efaca360502989a390aef6825666ab.tar.gz gcc-8233805962efaca360502989a390aef6825666ab.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 9103a25..fcb9261 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -705,6 +705,7 @@ unsigned int rebuild_cgraph_edges (void); void cgraph_rebuild_references (void); int compute_call_stmt_bb_frequency (tree, basic_block bb); void record_references_in_initializer (tree, bool); +void ipa_record_stmt_references (struct cgraph_node *, gimple); /* In ipa.c */ bool symtab_remove_unreachable_nodes (bool, FILE *); |