Commit 2454c8d4 by Jim Wilson

(V9_SWITCHES): Add -mmedlow, -mmedany.

(TARGET_OPTIONS): Delete.
(CONDITIONAL_REGISTER_USAGE): Don't unfix %g4 if -mmedany.

From-SVN: r7851
parent 00dc0e0a
...@@ -240,7 +240,7 @@ extern int target_flags; ...@@ -240,7 +240,7 @@ extern int target_flags;
Hence, we assume the upper 32 bits of symbolic addresses are zero, and Hence, we assume the upper 32 bits of symbolic addresses are zero, and
avoid generating %uhi and %ulo terms. avoid generating %uhi and %ulo terms.
Pointers are still 64 bits though! This option is for v9 only. */ Pointers are still 64 bits though! This option is for v9 only. */
/* ??? This option is deprecated. Try to use -mcode-model=medium-low. */ /* ??? This option is deprecated. Try to use -mmedlow. */
#define MASK_ENV32 0x10000 #define MASK_ENV32 0x10000
#define TARGET_ENV32 (target_flags & MASK_ENV32) #define TARGET_ENV32 (target_flags & MASK_ENV32)
...@@ -327,45 +327,14 @@ extern int target_flags; ...@@ -327,45 +327,14 @@ extern int target_flags;
/* {"ptr64", MASK_PTR64}, */ \ /* {"ptr64", MASK_PTR64}, */ \
/* {"ptr32", -MASK_PTR64}, */ \ /* {"ptr32", -MASK_PTR64}, */ \
{"stack-bias", MASK_STACK_BIAS}, \ {"stack-bias", MASK_STACK_BIAS}, \
{"no-stack-bias", -MASK_STACK_BIAS}, {"no-stack-bias", -MASK_STACK_BIAS}, \
{"medlow", -MASK_CODE_MODEL}, \
{"medlow", MASK_MEDLOW}, \
{"medany", -MASK_CODE_MODEL}, \
{"medany", MASK_MEDANY},
#else #else
#define V9_SWITCHES #define V9_SWITCHES
#endif #endif
/* This macro is similar to `TARGET_SWITCHES' but defines names of
command options that have values. Its definition is an
initializer with a subgrouping for each command option.
Each subgrouping contains a string constant, that defines the
fixed part of the option name, and the address of a variable.
The variable, type `char *', is set to the variable part of the
given option if the fixed part matches. The actual option name
is made by prepending `-m' to the specified name.
Here is an example which defines `-mshort-data-NUMBER'. If the
given option is `-mshort-data-512', the variable `m88k_short_data'
will be set to the string `"512"'.
extern char *m88k_short_data;
#define TARGET_OPTIONS { { "short-data-", &m88k_short_data } } */
/* For v9, two values of "code model" are currently supported.
medium-low
32 bit address space starting at 0
medium-anywhere
32 bit text segment starting at 0
32 bit data segment(s) starting anywhere (determined at link time)
MEDANY_BASE_REG points to the start
*/
extern char *sparc_code_model;
#define TARGET_OPTIONS \
{ \
{ "code-model=", &sparc_code_model } \
}
/* target machine storage layout */ /* target machine storage layout */
...@@ -649,7 +618,7 @@ do \ ...@@ -649,7 +618,7 @@ do \
{ \ { \
fixed_regs[2] = 0; \ fixed_regs[2] = 0; \
fixed_regs[3] = 0; \ fixed_regs[3] = 0; \
fixed_regs[4] = 0; \ fixed_regs[4] = TARGET_MEDANY != 0; \
} \ } \
if (TARGET_FLAT) \ if (TARGET_FLAT) \
{ \ { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment