summaryrefslogtreecommitdiff
path: root/gcc/target-globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/target-globals.h')
-rw-r--r--gcc/target-globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target-globals.h b/gcc/target-globals.h
index 496a50706c6..a733aa52b89 100644
--- a/gcc/target-globals.h
+++ b/gcc/target-globals.h
@@ -22,9 +22,11 @@ along with GCC; see the file COPYING3. If not see
#if SWITCHABLE_TARGET
extern struct target_flag_state *this_target_flag_state;
+extern struct target_regs *this_target_regs;
struct GTY(()) target_globals {
struct target_flag_state *GTY((skip)) flag_state;
+ struct target_regs *GTY((skip)) regs;
};
extern struct target_globals default_target_globals;
@@ -35,6 +37,7 @@ static inline void
restore_target_globals (struct target_globals *g)
{
this_target_flag_state = g->flag_state;
+ this_target_regs = g->regs;
}
#endif