summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.h
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-01 20:36:55 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-01 20:36:55 +0000
commitbb35cf1ef5f9aeff6609f97314ec57bfd079fd83 (patch)
treebc32f2535fb9ff5735df8d35ceafc095aafffd18 /gcc/lto-streamer.h
parent9ed2fc27765ba495f3becefe21f69d0f6f17fe27 (diff)
downloadgcc-bb35cf1ef5f9aeff6609f97314ec57bfd079fd83.tar.gz
* lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
output_record_start with LTO_null instead of output_zero. (lto_output_ts_binfo_tree_pointers): Likewise. (lto_output_tree): Likewise. (output_eh_try_list): Likewise. (output_eh_region): Likewise. (output_eh_lp): Likewise. (output_eh_regions): Likewise. (output_bb): Likewise. (output_function): Likewise. (output_unreferenced_globals): Likewise. * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES instead of NUM_TREE_CODES. (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES. (lto_output_int_in_range): Change << to >> when shifting VAL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174544 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r--gcc/lto-streamer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h
index e8410d4c70a..9de24fff63e 100644
--- a/gcc/lto-streamer.h
+++ b/gcc/lto-streamer.h
@@ -186,7 +186,7 @@ enum LTO_tags
Conversely, to map between LTO tags and tree/gimple codes, the
reverse operation must be applied. */
- LTO_bb0 = 1 + NUM_TREE_CODES + LAST_AND_UNUSED_GIMPLE_CODE,
+ LTO_bb0 = 1 + MAX_TREE_CODES + LAST_AND_UNUSED_GIMPLE_CODE,
LTO_bb1,
/* EH region holding the previous statement. */
@@ -957,7 +957,7 @@ extern VEC(lto_out_decl_state_ptr, heap) *lto_function_decl_states;
static inline bool
lto_tag_is_tree_code_p (enum LTO_tags tag)
{
- return tag > LTO_null && (unsigned) tag <= NUM_TREE_CODES;
+ return tag > LTO_null && (unsigned) tag <= MAX_TREE_CODES;
}
@@ -1226,11 +1226,11 @@ lto_output_int_in_range (struct lto_output_stream *obs,
val -= min;
lto_output_1_stream (obs, val & 255);
if (range >= 0xff)
- lto_output_1_stream (obs, (val << 8) & 255);
+ lto_output_1_stream (obs, (val >> 8) & 255);
if (range >= 0xffff)
- lto_output_1_stream (obs, (val << 16) & 255);
+ lto_output_1_stream (obs, (val >> 16) & 255);
if (range >= 0xffffff)
- lto_output_1_stream (obs, (val << 24) & 255);
+ lto_output_1_stream (obs, (val >> 24) & 255);
}
/* Input VAL into OBS and verify it is in range MIN...MAX that is supposed