From 7c0b611be92b28a42e1ea33977c6f73f2fed3101 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 12 Jul 2010 19:04:36 +0000 Subject: gcc/ * config/mips/mips.h (mips16_globals): Declare. (SWITCHABLE_TARGET): Define. * config/mips/mips.c: Include target-globals.h. (mips16_globals): New variable. (mips_set_mips16_mode): Use save_target_globals and restore_target_globals instead of target_reinit. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@162111 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/mips/mips.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/config/mips/mips.h') diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index ea79eba2550..a75cd578c21 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -3025,6 +3025,7 @@ extern const struct mips_cpu_info *mips_tune_info; extern const struct mips_rtx_cost_data *mips_cost; extern bool mips_base_mips16; extern enum mips_code_readable_setting mips_code_readable; +extern GTY(()) struct target_globals *mips16_globals; #endif /* Enable querying of DFA units. */ @@ -3059,3 +3060,6 @@ extern enum mips_code_readable_setting mips_code_readable; support this feature. */ #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \ (((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_absptr) + +/* For switching between MIPS16 and non-MIPS16 modes. */ +#define SWITCHABLE_TARGET 1 -- cgit v1.2.3