From 00dc0e0a65d4a69f0f40a821284b5bbc6c18bdf1 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 2 Aug 1994 11:51:03 -0700 Subject: [PATCH] (sparc_code_model): Delete. (sparc_override_options): Code model flags only useable with v9. From-SVN: r7850 --- gcc/config/sparc/sparc.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index f21c6449792..915d2edcb96 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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) -- 2.30.2