sp-elf.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Definitions of target machine for GCC,
  2. for SPARC running in an embedded environment using the ELF file format.
  3. Copyright (C) 2005-2015 Free Software Foundation, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public 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. /* Don't assume anything about the header files. */
  17. #define NO_IMPLICIT_EXTERN_C
  18. /* It's safe to pass -s always, even if -g is not used. */
  19. #undef ASM_SPEC
  20. #define ASM_SPEC \
  21. "-s \
  22. %{fpic|fpie|fPIC|fPIE:-K PIC} %(asm_cpu)"
  23. /* Use the default. */
  24. #undef LINK_SPEC
  25. #undef STARTFILE_SPEC
  26. #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
  27. #undef ENDFILE_SPEC
  28. #define ENDFILE_SPEC \
  29. "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
  30. crtend.o%s crtn.o%s"
  31. /* Don't set the target flags, this is done by the linker script */
  32. #undef LIB_SPEC
  33. #define LIB_SPEC ""
  34. #undef LOCAL_LABEL_PREFIX
  35. #define LOCAL_LABEL_PREFIX "."
  36. /* This is how to store into the string LABEL
  37. the symbol_ref name of an internal numbered label where
  38. PREFIX is the class of label and NUM is the number within the class.
  39. This is suitable for output with `assemble_name'. */
  40. #undef ASM_GENERATE_INTERNAL_LABEL
  41. #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
  42. sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM))
  43. /* ??? Inherited from sol2.h. Probably wrong. */
  44. #undef WCHAR_TYPE
  45. #define WCHAR_TYPE "long int"
  46. #undef WCHAR_TYPE_SIZE
  47. #define WCHAR_TYPE_SIZE BITS_PER_WORD
  48. /* ??? until fixed. */
  49. #undef LONG_DOUBLE_TYPE_SIZE
  50. #define LONG_DOUBLE_TYPE_SIZE 64