aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2011-06-15 13:22:35 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2011-06-15 13:22:35 +0200
commit93536c974233d3b400e719aac0d089185e1b5a97 (patch)
tree422743e602234bc1b71a677f44111a1c2b81fa82 /gcc
parentba45cfc48b59e577302d5d08f98a866344fbe850 (diff)
downloadgcc-93536c974233d3b400e719aac0d089185e1b5a97.zip
gcc-93536c974233d3b400e719aac0d089185e1b5a97.tar.gz
gcc-93536c974233d3b400e719aac0d089185e1b5a97.tar.bz2
re PR tree-optimization/48613 (ICE: vector VEC(ipa_node_params_t,base) index domain error with -O0 -flto -findirect-inlining)
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. From-SVN: r175077
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-prop.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a4c589f..959edbb 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 6873c9e..f7bb311 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);