From: Doug Evans Date: Tue, 20 Feb 1996 05:37:36 +0000 (+0000) Subject: (sparc_override_options): Error if -mcpu=v9 and v9 support not compiled in. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97da85b7a061926d4ddf4db2d91a561396a3f150;p=gcc.git (sparc_override_options): Error if -mcpu=v9 and v9 support not compiled in. From-SVN: r11326 --- diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 9c927589fc9..46927dd653d 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -188,6 +188,10 @@ sparc_override_options () if (! p->name) error ("bad value (%s) for -mcpu= switch", sparc_cpu_string); + if ((sparc_cpu == CPU_V9 || sparc_cpu == CPU_ULTRASPARC) + && ! SPARC_V9) + error ("sparc64 is not supported by this configuration"); + if ((sparc_cpu == CPU_V9 || sparc_cpu == CPU_ULTRASPARC) && TARGET_ARCH32) target_flags |= MASK_DEPRECATED_V8_INSNS;