mti-elf.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Target macros for mips*-mti-elf targets.
  2. Copyright (C) 2012-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #undef DRIVER_SELF_SPECS
  16. #define DRIVER_SELF_SPECS \
  17. /* Set the ISA for the default multilib. */ \
  18. MIPS_DEFAULT_ISA_LEVEL_SPEC, \
  19. \
  20. /* Make sure a -mips option is present. This helps us to pick \
  21. the right multilib, and also makes the later specs easier \
  22. to write. */ \
  23. MIPS_ISA_LEVEL_SPEC, \
  24. \
  25. /* Infer the default float setting from -march. */ \
  26. MIPS_ARCH_FLOAT_SPEC, \
  27. \
  28. /* Infer the -msynci setting from -march if not explicitly set. */ \
  29. MIPS_ISA_SYNCI_SPEC, \
  30. \
  31. /* If no ABI option is specified, infer one from the ISA level \
  32. or -mgp setting. */ \
  33. "%{!mabi=*: %{" MIPS_32BIT_OPTION_SPEC ": -mabi=32;: -mabi=n32}}", \
  34. \
  35. /* If no FP ABI option is specified, infer one from the \
  36. ABI/ISA level. */ \
  37. "%{!msoft-float: %{!msingle-float: %{!mfp*: %{mabi=32: %{" \
  38. MIPS_FPXX_OPTION_SPEC ": -mfpxx}}}}}", \
  39. \
  40. /* Make sure that an endian option is always present. This makes \
  41. things like LINK_SPEC easier to write. */ \
  42. "%{!EB:%{!EL:%(endian_spec)}}", \
  43. \
  44. /* Configuration-independent MIPS rules. */ \
  45. BASE_DRIVER_SELF_SPECS