aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-24 15:42:27 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-24 15:42:27 +0000
commite0cbb51bee4a942b019971eb2282c478708e7208 (patch)
tree11e2c0bb3c92f5116dde76e372eea267aa5c8b9a /gcc
parentdbe9f23ca7046f0dc78d06a485a02b5c076f0015 (diff)
downloadgcc-e0cbb51bee4a942b019971eb2282c478708e7208.zip
gcc-e0cbb51bee4a942b019971eb2282c478708e7208.tar.gz
gcc-e0cbb51bee4a942b019971eb2282c478708e7208.tar.bz2
lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2010-11-24 Richard Guenther <rguenther@suse.de> * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p. From-SVN: r167116
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/lto-streamer-in.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bacb39c..f9b2d82 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index 4d36f06..f167d40 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -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;