This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]