]> gcc.gnu.org Git - gcc.git/commitdiff
linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH, override sparc.h definition.
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 May 2004 10:18:16 +0000 (12:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 May 2004 10:18:16 +0000 (12:18 +0200)
* config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
override sparc.h definition.

From-SVN: r82091

gcc/ChangeLog
gcc/config/sparc/linux64.h

index bdbe5fb24d2ee5226261022db4df1e5598cce48c..b1645a82b2aeed7ee6ee01d8e5c6b32b57944b1d 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
+       override sparc.h definition.
+
 2004-05-20  Roger Sayle  <roger@eyesopen.com>
 
        * tree.c (array_type_nelts, save_expr, substitute_in_expr,
index 991975a26ad4248cd0ac0a69b12a3b72599e6929..04ddcb95d179b08a8f8a95b6b59aa5d0069239b3 100644 (file)
@@ -223,6 +223,27 @@ Boston, MA 02111-1307, USA.  */
 "
 #endif
 
+/* Support for a compile-time default CPU, et cetera.  The rules are:
+   --with-cpu is ignored if -mcpu is specified.
+   --with-tune is ignored if -mtune is specified.
+   --with-float is ignored if -mhard-float, -msoft-float, -mfpu, or -mno-fpu
+     are specified.
+   In the SPARC_BI_ARCH compiler we cannot pass %{!mcpu=*:-mcpu=%(VALUE)}
+   here, otherwise say -mcpu=v7 would be passed even when -m64.
+   CC1_SPEC above takes care of this instead.  */
+#undef OPTION_DEFAULT_SPECS
+#if DEFAULT_ARCH32_P
+#define OPTION_DEFAULT_SPECS \
+  {"cpu", "%{!m64:%{!mcpu=*:-mcpu=%(VALUE)}}" }, \
+  {"tune", "%{!mtune=*:-mtune=%(VALUE)}" }, \
+  {"float", "%{!msoft-float:%{!mhard-float:%{!fpu:%{!no-fpu:-m%(VALUE)-float}}}}" }
+#else
+#define OPTION_DEFAULT_SPECS \
+  {"cpu", "%{!m32:%{!mcpu=*:-mcpu=%(VALUE)}}" }, \
+  {"tune", "%{!mtune=*:-mtune=%(VALUE)}" }, \
+  {"float", "%{!msoft-float:%{!mhard-float:%{!fpu:%{!no-fpu:-m%(VALUE)-float}}}}" }
+#endif
+
 #if DEFAULT_ARCH32_P
 #define MULTILIB_DEFAULTS { "m32" }
 #else
This page took 0.333436 seconds and 5 git commands to generate.