lto-streamer-out.c (output_record_start): Use lto_output_enum
authorJan Hubicka <jh@suse.cz>
Wed, 25 May 2011 12:07:38 +0000 (14:07 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 25 May 2011 12:07:38 +0000 (12:07 +0000)
commitf242c0a5c0415bda56f33a13ef65e962ac995797
tree1b42ff9de53077e317f6573fb7a0e6580fe3254f
parent52d0a7acadc642b26e833dfcaffc22e4d59fb75f
lto-streamer-out.c (output_record_start): Use lto_output_enum

* lto-streamer-out.c (output_record_start): Use lto_output_enum
(lto_output_tree): Use output_record_start.
* lto-streamer-in.c (input_record_start): Use lto_input_enum
(lto_get_pickled_tree): Use input_record_start.
* lto-section-in.c (lto_section_overrun): Turn into fatal error.
(lto_value_range_error): New function.
* lto-streamer.h (lto_value_range_error): Declare.
(lto_output_int_in_range, lto_input_int_in_range): New functions.
(lto_output_enum, lto_input_enum): New macros.

From-SVN: r174186
gcc/ChangeLog
gcc/lto-section-in.c
gcc/lto-streamer-in.c
gcc/lto-streamer-out.c
gcc/lto-streamer.h