config.gcc (powerpc|rs6000): Set default cpp options based on --with-cpu settings.
authorDJ Delorie <dj@redhat.com>
Tue, 13 Nov 2001 22:08:28 +0000 (17:08 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 13 Nov 2001 22:08:28 +0000 (17:08 -0500)
* config.gcc (powerpc|rs6000): Set default cpp options based
on --with-cpu settings.
* config/rs6000/softfloat.h: New.

From-SVN: r46993

gcc/ChangeLog
gcc/config.gcc
gcc/config/rs6000/softfloat.h [new file with mode: 0644]

index b7acb2facff0d3cf7c2484ffcd235e1d5dd39faa..5a04aa8b1bb383b7ccd8c4875805c62a6bb6da7c 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-13  DJ Delorie  <dj@redhat.com>
+
+       * config.gcc (powerpc|rs6000): Set default cpp options based
+       on --with-cpu settings.
+       * config/rs6000/softfloat.h: New.
+
 2001-11-13  Kazu Hirata  <kazu@hxi.com>
 
        * config/h8300/h8300.c (shift_alg_si): Use special code for
index f6169ddc3ab9ff67b559cb793431d96a31956add..29029738b089cb788d0c668ed959683e1bcfc7e1 100644 (file)
@@ -3409,11 +3409,15 @@ powerpc*-*-* | rs6000-*-*)
                xcommon | xpower | xpower2 | xpowerpc | xrios \
                  | xrios1 | xrios2 | xrsc | xrsc1 \
                  | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
-                 | xec603e | x740 | x750 | x401 \
-                 | x403 | x505 | x801 | x821 | x823 | x860)
+                 | x740 | x750 | x505)
                        target_cpu_default2="\\\"$with_cpu\\\""
                        ;;
 
+               x401 | x403 | xec603e | x801 | x821 | x823 | x860)
+                       target_cpu_default2="\\\"$with_cpu\\\""
+                       tm_file="$tm_file rs6000/softfloat.h"
+                       ;;
+
                xyes | xno)
                        echo "--with-cpu must be passed a value" 1>&2
                        exit 1
diff --git a/gcc/config/rs6000/softfloat.h b/gcc/config/rs6000/softfloat.h
new file mode 100644 (file)
index 0000000..c0dc10d
--- /dev/null
@@ -0,0 +1,24 @@
+/* Target definitions for GNU compiler for PowerPC defaulting to -msoft-float
+   Copyright (C) 2001
+   Free Software Foundation, Inc.
+   Contributed by Red Hat Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING.  If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
+
+#undef CPP_FLOAT_DEFAULT_SPEC
+#define CPP_FLOAT_DEFAULT_SPEC "-D_SOFT_FLOAT"