From c61f8c3b79e093c3485d1b381a04b482c7edf885 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 18 Oct 2012 10:59:55 +0000 Subject: lto-streamer.h (enum LTO_tags): Add LTO_integer_cst. 2012-10-18 Richard Guenther * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst. * lto-streamer-in.c (lto_input_tree): Use it. * lto-streamer-out.c (lto_output_tree): Likewise, for !TREE_OVERFLOW integer constants only. * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function. (unpack_value_fields): Call it. (streamer_read_integer_cst): Simplify. * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function. (streamer_pack_tree_bitfields): Call it. (streamer_write_integer_cst): Adjust. From-SVN: r192559 --- gcc/lto-streamer-in.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/lto-streamer-in.c') diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index a5d13ee..15905f8 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1086,9 +1086,9 @@ lto_input_tree (struct lto_input_block *ib, struct data_in *data_in) the code and class. */ result = streamer_get_builtin_tree (ib, data_in); } - else if (tag == lto_tree_code_to_tag (INTEGER_CST)) + else if (tag == LTO_integer_cst) { - /* For integer constants we only need the type and its hi/low + /* For shared integer constants we only need the type and its hi/low words. */ result = streamer_read_integer_cst (ib, data_in); } -- cgit v1.1