From e0cbb51bee4a942b019971eb2282c478708e7208 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 24 Nov 2010 15:42:27 +0000 Subject: [PATCH] lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p. 2010-11-24 Richard Guenther * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p. From-SVN: r167116 --- gcc/ChangeLog | 4 ++++ gcc/lto-streamer-in.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bacb39c6d43..f9b2d829349 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-11-24 Richard Guenther + + * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p. + 2010-11-24 Richard Guenther PR lto/46606 diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 4d36f067592..f167d400302 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;