xilinx.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Support for GCC on Xilinx embedded PowerPC systems
  2. Copyright (C) 2008-2015 Free Software Foundation, Inc.
  3. Contributed by Michael Eager, eager@eagercon.com
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published
  7. by the Free Software Foundation; either version 3, or (at your
  8. option) any later version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. /* Set defaults for Xilinx embedded target boards. */
  17. #undef CPP_SPEC
  18. #define CPP_SPEC "\
  19. -mxilinx-fpu \
  20. %{mfpu=sp_lite: -DHAVE_XFPU_SP_LITE} \
  21. %{mfpu=sp_full: -DHAVE_XFPU_SP_FULL} \
  22. %{mfpu=dp_lite: -DHAVE_XFPU_DP_LITE} \
  23. %{mfpu=dp_full: -DHAVE_XFPU_DP_FULL} \
  24. %{mfpu=*: -DHAVE_XFPU}"
  25. #undef LIB_DEFAULT_SPEC
  26. #define LIB_DEFAULT_SPEC "\
  27. %{!nostdlib: --start-group -lxil -lc -lm --end-group \
  28. %{mppcperflib: %{mfpu=*: -lppcstr405 -lgcc} \
  29. %{!mfpu=*: -lppcstr405 -lppcfp -lgcc}} \
  30. %{!mppcperflib: -lgcc}}"
  31. #undef STARTFILE_DEFAULT_SPEC
  32. #define STARTFILE_DEFAULT_SPEC "\
  33. ecrti.o%s %{pg: %{!mno-clearbss: xil-pgcrt0.o%s} \
  34. %{mno-clearbss: xil-sim-pgcrt0.o%s}} \
  35. %{!pg: %{!mno-clearbss: xil-crt0.o%s} \
  36. %{mno-clearbss: xil-sim-crt0.o%s}} crtbegin.o%s"
  37. #undef LINK_START_DEFAULT_SPEC
  38. #define LINK_START_DEFAULT_SPEC "-T xilinx.ld%s"