GTY(()) tree first_personality_decl;
-GTY(()) const unsigned char *lto_mode_identity_table;
-
/* Returns a hash code for P. */
static hashval_t
#ifdef ACCEL_COMPILER
lto_input_mode_table (file_data);
#else
- file_data->mode_table = lto_mode_identity_table;
+ file_data->mode_table = NULL;
file_data->mode_bits = ceil_log2 (MAX_MACHINE_MODE);
#endif
memset (<o_stats, 0, sizeof (lto_stats));
bitmap_obstack_initialize (NULL);
gimple_register_cfg_hooks ();
-#ifndef ACCEL_COMPILER
- unsigned char *table
- = ggc_vec_alloc<unsigned char> (MAX_MACHINE_MODE);
- for (int m = 0; m < MAX_MACHINE_MODE; m++)
- table[m] = m;
- lto_mode_identity_table = table;
-#endif
}
#include "gt-lto-lto-common.h"
extern tree lto_eh_personality_decl;
extern GTY(()) vec<tree, va_gc> *tree_with_vars;
-extern const unsigned char *lto_mode_identity_table;
extern tree first_personality_decl;
#endif
lto_input_block *ib = (class lto_input_block *) bp->stream;
int last = 1 << ib->file_data->mode_bits;
unsigned ix = bp_unpack_enum (bp, machine_mode, last);
- return (machine_mode) ib->file_data->mode_table[ix];
+ if (ib->file_data->mode_table)
+ return (machine_mode) ib->file_data->mode_table[ix];
+ else
+ return (machine_mode) ix;
}
#endif /* GCC_TREE_STREAMER_H */