]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ipa/59176 (ICE edge points to wrong declaration / verify_cgraph_node failed)
authorMartin Jambor <mjambor@suse.cz>
Tue, 25 Mar 2014 10:57:07 +0000 (11:57 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 25 Mar 2014 10:57:07 +0000 (11:57 +0100)
2014-03-25  Martin Jambor  <mjambor@suse.cz>

PR ipa/59176
* lto-cgraph.c (lto_output_node): Stream body_removed flag.
(lto_output_varpool_node): Likewise.
(input_overwrite_node): Likewise.
(input_varpool_node): Likewise.

From-SVN: r208809

gcc/ChangeLog
gcc/lto-cgraph.c

index edb45ecc95dda5e33a52f6355d31f333dac51a0c..7cfbab76dc296051b43013de917a1de0f8ab207e 100644 (file)
@@ -1,3 +1,11 @@
+2014-03-25  Martin Jambor  <mjambor@suse.cz>
+
+       PR ipa/59176
+       * lto-cgraph.c (lto_output_node): Stream body_removed flag.
+       (lto_output_varpool_node): Likewise.
+       (input_overwrite_node): Likewise.
+       (input_varpool_node): Likewise.
+
 2014-03-25  Richard Biener  <rguenther@suse.de>
 
        * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like
index ef3890db981f1dc61c2a2f24549e464bbe8339e7..60ae13208437d1e013af6e5604b5049dc7bf4eae 100644 (file)
@@ -500,6 +500,7 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node,
   bp_pack_value (&bp, node->force_output, 1);
   bp_pack_value (&bp, node->forced_by_abi, 1);
   bp_pack_value (&bp, node->unique_name, 1);
+  bp_pack_value (&bp, node->body_removed, 1);
   bp_pack_value (&bp, node->address_taken, 1);
   bp_pack_value (&bp, tag == LTO_symtab_analyzed_node
                 && symtab_get_symbol_partitioning_class (node) == SYMBOL_PARTITION
@@ -560,6 +561,7 @@ lto_output_varpool_node (struct lto_simple_output_block *ob, varpool_node *node,
   bp_pack_value (&bp, node->force_output, 1);
   bp_pack_value (&bp, node->forced_by_abi, 1);
   bp_pack_value (&bp, node->unique_name, 1);
+  bp_pack_value (&bp, node->body_removed, 1);
   bp_pack_value (&bp, node->definition, 1);
   alias_p = node->alias && (!boundary_p || node->weakref);
   bp_pack_value (&bp, alias_p, 1);
@@ -969,6 +971,7 @@ input_overwrite_node (struct lto_file_decl_data *file_data,
   node->force_output = bp_unpack_value (bp, 1);
   node->forced_by_abi = bp_unpack_value (bp, 1);
   node->unique_name = bp_unpack_value (bp, 1);
+  node->body_removed = bp_unpack_value (bp, 1);
   node->address_taken = bp_unpack_value (bp, 1);
   node->used_from_other_partition = bp_unpack_value (bp, 1);
   node->lowered = bp_unpack_value (bp, 1);
@@ -1147,6 +1150,7 @@ input_varpool_node (struct lto_file_decl_data *file_data,
   node->force_output = bp_unpack_value (&bp, 1);
   node->forced_by_abi = bp_unpack_value (&bp, 1);
   node->unique_name = bp_unpack_value (&bp, 1);
+  node->body_removed = bp_unpack_value (&bp, 1);
   node->definition = bp_unpack_value (&bp, 1);
   node->alias = bp_unpack_value (&bp, 1);
   node->weakref = bp_unpack_value (&bp, 1);