diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-24 15:35:21 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-24 15:35:21 +0000 |
commit | 7d9f258fdcec6e984c2b942382235b98e9300b1b (patch) | |
tree | 43bacd6846c8b3eb43f0268cb4dce94a7f027c38 /gcc/testsuite/gcc.dg | |
parent | cc0dc61ba53d34053c5998ba909ac6ea62d06024 (diff) | |
download | gcc-7d9f258fdcec6e984c2b942382235b98e9300b1b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199299 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/pr57294.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/pr57294.c b/gcc/testsuite/gcc.dg/ipa/pr57294.c new file mode 100644 index 00000000000..0871f3f4183 --- /dev/null +++ b/gcc/testsuite/gcc.dg/ipa/pr57294.c @@ -0,0 +1,18 @@ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ + +void baz (void); +int func (); + +static void +bar (int a, int foo (void)) +{ + baz (); + foo (); +} + +void +baz (void) +{ + bar (0, func); +} |