Add CPP_SPEC for -mxilinx-fpu.
authorMichael Eager <eager@eagercon.com>
Mon, 4 May 2009 15:22:22 +0000 (15:22 +0000)
committerMichael Eager <eager@gcc.gnu.org>
Mon, 4 May 2009 15:22:22 +0000 (15:22 +0000)
From-SVN: r147101

gcc/ChangeLog
gcc/config/rs6000/xilinx.h

index 6bc8a32e8de377acd9e1b29844d29a642de232e1..075eae529575263da26356d2092469d8664f621f 100644 (file)
@@ -1,3 +1,7 @@
+2009-05-04  Michael Eager <eager@eagercon.com>
+
+       * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
+
 2009-05-04  Michael Eager <eager@eagercon.com>
 
        * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
index b423876e312552e8fbbe7c5ab9a19ac998002743..3b59141a2a288bc38ec2e68313859de1d87f2c93 100644 (file)
 
 /* Set defaults for Xilinx embedded target boards. */
 
+#undef  CPP_SPEC
+#define CPP_SPEC "\
+-mxilinx-fpu                                    \
+%{mfpu=sp_lite: -DHAVE_XFPU_SP_LITE}            \
+%{mfpu=sp_full: -DHAVE_XFPU_SP_FULL}            \
+%{mfpu=dp_lite: -DHAVE_XFPU_DP_LITE}            \
+%{mfpu=dp_full: -DHAVE_XFPU_DP_FULL}            \
+%{mfpu=*:   -DHAVE_XFPU}"
+
 #undef LIB_DEFAULT_SPEC
 #define LIB_DEFAULT_SPEC "\
 %{!nostdlib: --start-group -lxil -lc -lm --end-group   \