diff mbox

[LTO] Conversion oversight in input_gimple_stmt

Message ID alpine.LNX.2.00.1011241639460.23074@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener Nov. 24, 2010, 3:40 p.m. UTC
When fixing up TYPE_CANONICAL merging I forgot to update one callsite
of gimple_types_compatible_p.  Fixed with the following, bootstrapped
and tested on x86_64-unknown-linux-gnu, SPEC 2k6 built with -flto.

Installed.

Richard.

2010-11-24  Richard Guenther  <rguenther@suse.de>

	* lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
diff mbox

Patch

Index: gcc/lto-streamer-in.c
===================================================================
--- gcc/lto-streamer-in.c	(revision 167115)
+++ gcc/lto-streamer-in.c	(working copy)
@@ -967,9 +967,8 @@  input_gimple_stmt (struct lto_input_bloc
 			  == DECL_NONADDRESSABLE_P (field)
 			  && gimple_compare_field_offset (tem, field))
 			{
-			  if (gimple_types_compatible_p (TREE_TYPE (tem),
-							 TREE_TYPE (field),
-							 GTC_DIAG))
+			  if (types_compatible_p (TREE_TYPE (tem),
+						  TREE_TYPE (field)))
 			    break;
 			  else
 			    closest_match = tem;