Commit 00dc0e0a by Jim Wilson

(sparc_code_model): Delete.

(sparc_override_options): Code model flags only useable with v9.

From-SVN: r7850
parent b6d3c4ba
......@@ -113,40 +113,19 @@ static void sparc_init_modes ();
/* Option handling. */
/* Contains one of: medium-low, medium-anywhere. */
/* ??? These names are quite long. */
char *sparc_code_model;
/* Validate and override various options, and do some machine dependent
initialization. */
void
sparc_override_options ()
{
if (sparc_code_model == 0)
/* Nothing to do. */
;
else if (! TARGET_V9)
error ("code model support is only available with -mv9");
else if (strcmp (sparc_code_model, "medium-low") == 0)
{
target_flags &= ~MASK_CODE_MODEL;
target_flags |= MASK_MEDLOW;
}
else if (strcmp (sparc_code_model, "medium-anywhere") == 0)
{
target_flags &= ~MASK_CODE_MODEL;
target_flags |= MASK_MEDANY;
}
else
error ("bad value (%s) for -mcode-model switch", sparc_code_model);
/* Check for any conflicts in the choice of options. */
/* ??? This stuff isn't really usable yet. */
if (! TARGET_V9)
{
if (target_flags & MASK_CODE_MODEL)
error ("code model support is only available with -mv9");
if (TARGET_INT64)
error ("-mint64 is only available with -mv9");
if (TARGET_LONG64)
......
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