From 1e4bc4ebc6a934266241e8fefb6f7924a0b7f9b3 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 15 Dec 2009 11:32:49 +0000 Subject: gimple.h (compare_field_offset): Declare. 2009-12-15 Richard Guenther * gimple.h (compare_field_offset): Declare. * gimple.c (compare_field_offset): Export. * lto-streamer-in.c (input_gimple_stmt): Use compare_field_offset. From-SVN: r155250 --- gcc/lto-streamer-in.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/lto-streamer-in.c') diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 9f831a8..ea657e1 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1082,12 +1082,7 @@ input_gimple_stmt (struct lto_input_block *ib, struct data_in *data_in, { if (tem == field || (TREE_TYPE (tem) == TREE_TYPE (field) - && (DECL_FIELD_OFFSET (tem) - == DECL_FIELD_OFFSET (field)) - && (DECL_FIELD_BIT_OFFSET (tem) - == DECL_FIELD_BIT_OFFSET (field)) - && (DECL_OFFSET_ALIGN (tem) - == DECL_OFFSET_ALIGN (field)))) + && compare_field_offset (tem, field))) break; } /* In case of type mismatches across units we can fail -- cgit v1.1