From 1405bf4c9c5324639ca4b0a6529b5e4a43eb31db Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 26 Feb 2019 21:08:22 +0000 Subject: sparc-opts.h (enum processor_type): Rename to... * config/sparc/sparc-opts.h (enum processor_type): Rename to... (enum sparc_processor_type): ...this. (enum sparc_code_model_type): New enumeration type. (enum sparc_memory_model_type): Tweak comments. * config/sparc/sparc.opt (mcpu): Adjust to above renaming. (mtune): Likewise. (mcmodel): Use sparc_code_model enumeration and variable. (sparc_code_model): New enumeration. (mdebug): Add Undocumented marker. * config/sparc/sparc.h (enum cmodel): Delete. (sparc_cmodel): Likewise. (TARGET_CM_MEDLOW): Adjust to above renaming. (TARGET_CM_MEDMID): Likewise. (TARGET_CM_MEDANY): Likewise. (TARGET_CM_EMBMEDANY): Likewise. * config/sparc/sparc.c (sparc_cmodel): Delete. (sparc_option_override): Remove string/value mapping support for the code model. Move code and memory model support to after the handling of target flags. Do private machine setup last. (sparc_emit_set_symbolic_const64): Use sparc_code_model. (sparc_legitimize_reload_address): Likewise. (sparc_output_mi_thunk): Likewise. * config/sparc/sparc.md (cpu): Adjust comment to above renaming. From-SVN: r269232 --- gcc/config/sparc/sparc.h | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'gcc/config/sparc/sparc.h') diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index b5ede667649..015065ffb81 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -90,23 +90,12 @@ along with GCC; see the file COPYING3. If not see Different code models are not supported in 32-bit environment. */ -enum cmodel { - CM_32, - CM_MEDLOW, - CM_MEDMID, - CM_MEDANY, - CM_EMBMEDANY -}; - -/* One of CM_FOO. */ -extern enum cmodel sparc_cmodel; - -/* V9 code model selection. */ -#define TARGET_CM_MEDLOW (sparc_cmodel == CM_MEDLOW) -#define TARGET_CM_MEDMID (sparc_cmodel == CM_MEDMID) -#define TARGET_CM_MEDANY (sparc_cmodel == CM_MEDANY) -#define TARGET_CM_EMBMEDANY (sparc_cmodel == CM_EMBMEDANY) +#define TARGET_CM_MEDLOW (sparc_code_model == CM_MEDLOW) +#define TARGET_CM_MEDMID (sparc_code_model == CM_MEDMID) +#define TARGET_CM_MEDANY (sparc_code_model == CM_MEDANY) +#define TARGET_CM_EMBMEDANY (sparc_code_model == CM_EMBMEDANY) +/* Default code model to be overridden in 64-bit environment. */ #define SPARC_DEFAULT_CMODEL CM_32 /* Do not use the .note.GNU-stack convention by default. */ -- cgit v1.2.1