OSDN Git Service

2010-11-24 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Nov 2010 15:42:27 +0000 (15:42 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Nov 2010 15:42:27 +0000 (15:42 +0000)
* lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167116 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/lto-streamer-in.c

index bacb39c..f9b2d82 100644 (file)
@@ -1,5 +1,9 @@
 2010-11-24  Richard Guenther  <rguenther@suse.de>
 
+       * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
+
+2010-11-24  Richard Guenther  <rguenther@suse.de>
+
        PR lto/46606
        * lto-streamer-in.c (input_gimple_stmt): When we cannot find
        a FIELD_DECL that is type correct issue a warning and fixup
index 4d36f06..f167d40 100644 (file)
@@ -967,9 +967,8 @@ input_gimple_stmt (struct lto_input_block *ib, struct data_in *data_in,
                          == 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;