aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Eager <eager@eagercon.com>2009-05-04 15:22:22 +0000
committerMichael Eager <eager@gcc.gnu.org>2009-05-04 15:22:22 +0000
commitc3ba8d324364854de37e464689cddc73b55eb632 (patch)
tree5f7ce88bdf800ff05838547fdc429de893c3e4ad /gcc
parentedce9f18ecaf216023b001851d39585dccf0274a (diff)
downloadgcc-c3ba8d324364854de37e464689cddc73b55eb632.zip
gcc-c3ba8d324364854de37e464689cddc73b55eb632.tar.gz
gcc-c3ba8d324364854de37e464689cddc73b55eb632.tar.bz2
Add CPP_SPEC for -mxilinx-fpu.
From-SVN: r147101
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/xilinx.h9
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6bc8a32..075eae5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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
* config/rs6000/t-xilinx: New
diff --git a/gcc/config/rs6000/xilinx.h b/gcc/config/rs6000/xilinx.h
index b423876..3b59141 100644
--- a/gcc/config/rs6000/xilinx.h
+++ b/gcc/config/rs6000/xilinx.h
@@ -20,6 +20,15 @@
/* 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 \