diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-15 11:22:35 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-15 11:22:35 +0000 |
commit | 0a0b492442f5b30e7e61ac17d23f7207d48e31f0 (patch) | |
tree | 422743e602234bc1b71a677f44111a1c2b81fa82 | |
parent | aaec0525605f59f6cafd5cc087716a1cb59ae863 (diff) | |
download | gcc-0a0b492442f5b30e7e61ac17d23f7207d48e31f0.tar.gz |
2011-06-15 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/48613
* ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
ipa_node_params_vector is NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175077 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-prop.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4c589fa310..959edbb8c11 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-15 Martin Jambor <mjambor@suse.cz> + + PR tree-optimization/48613 + * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if + ipa_node_params_vector is NULL. + 2011-06-15 Jakub Jelinek <jakub@redhat.com> PR debug/49382 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 6873c9ed9b8..f7bb3114ba6 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -2900,12 +2900,15 @@ void ipa_prop_write_jump_functions (cgraph_node_set set) { struct cgraph_node *node; - struct output_block *ob = create_output_block (LTO_section_jump_functions); + struct output_block *ob; unsigned int count = 0; cgraph_node_set_iterator csi; - ob->cgraph_node = NULL; + if (!ipa_node_params_vector) + return; + ob = create_output_block (LTO_section_jump_functions); + ob->cgraph_node = NULL; for (csi = csi_start (set); !csi_end_p (csi); csi_next (&csi)) { node = csi_node (csi); |