This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[LTO] committed patch to fix bug in lto-cgraph.c
- From: =?big5?b?RG91ZyBLd2FuICjD9q62vHcp?= <dougkwan at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Diego Novillo <dnovillo at google dot com>
- Date: Fri, 31 Oct 2008 13:17:46 -0700
- Subject: [LTO] committed patch to fix bug in lto-cgraph.c
Hi,
I just commited this trivial fix to rev 141500. Previously, the
conditions to handle optional data in input_node and output_node did
not agree and we got various kinds of error in input_node when it saw
unexpected data in summary.
-Doug
2008-10-31 Doug Kwan <dougkwan@google.com>
* lto-cgraph.c (input_nodE): Fix test so that output_node and
input_node handle optional fields under the same condition.
Index: gcc/gcc/lto-cgraph.c
===================================================================
--- gcc/gcc/lto-cgraph.c (revision 141499)
+++ gcc/gcc/lto-cgraph.c (working copy)
@@ -537,7 +537,7 @@ input_node (struct lto_file_decl_data* f
LTO_DEBUG_TOKEN ("flags");
flags = lto_input_uleb128 (ib);
- if (tag == LTO_cgraph_avail_node)
+ if (tag != LTO_cgraph_unavail_node)
{
LTO_DEBUG_TOKEN ("stack_size");
stack_size = lto_input_sleb128 (ib);