patch-gcc_config_sparc_openbsd64_h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. $OpenBSD: patch-gcc_config_sparc_openbsd64_h,v 1.4 2012/10/07 20:09:45 landry Exp $
  2. --- gcc/config/sparc/openbsd64.h.orig Thu Dec 9 17:31:47 2010
  3. +++ gcc/config/sparc/openbsd64.h Sat Oct 6 12:10:31 2012
  4. @@ -23,7 +23,7 @@ along with GCC; see the file COPYING3. If not see
  5. /* XXX - do we really want HARD_QUAD? */
  6. #undef TARGET_DEFAULT
  7. #define TARGET_DEFAULT \
  8. -(MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_HARD_QUAD \
  9. +(MASK_V9 + MASK_PTR64 + MASK_64BIT + /* MASK_HARD_QUAD */ \
  10. + MASK_APP_REGS + MASK_FPU + MASK_STACK_BIAS + MASK_LONG_DOUBLE_128)
  11. #undef SPARC_DEFAULT_CMODEL
  12. @@ -33,10 +33,7 @@ along with GCC; see the file COPYING3. If not see
  13. #define TARGET_OS_CPP_BUILTINS() \
  14. do \
  15. { \
  16. - builtin_define ("__unix__"); \
  17. - builtin_define ("__OpenBSD__"); \
  18. - builtin_assert ("system=unix"); \
  19. - builtin_assert ("system=OpenBSD"); \
  20. + OPENBSD_OS_CPP_BUILTINS(); \
  21. builtin_define ("__sparc64__"); \
  22. builtin_define ("__sparcv9__"); \
  23. builtin_define ("__sparc_v9__"); \
  24. @@ -47,15 +44,20 @@ along with GCC; see the file COPYING3. If not see
  25. #undef CPP_SUBTARGET_SPEC
  26. #define CPP_SUBTARGET_SPEC ""
  27. -/* Inherited from sp64-elf. */
  28. -#undef NO_IMPLICIT_EXTERN_C
  29. -
  30. #undef ASM_SPEC
  31. +#ifdef PIE_DEFAULT
  32. #define ASM_SPEC "\
  33. +-s %{fpic|fPIC:-K PIC} %{!fno-pie: %{!p: %{!pg: -K PIC}}} \
  34. +%{mlittle-endian:-EL} \
  35. +%(asm_cpu) %(asm_arch) \
  36. +"
  37. +#else
  38. +#define ASM_SPEC "\
  39. -s %{fpic|fPIC|fpie|fPIE:-K PIC} \
  40. %{mlittle-endian:-EL} \
  41. %(asm_cpu) %(asm_arch) \
  42. "
  43. +#endif
  44. /* Layout of source language data types. */
  45. #undef WCHAR_TYPE
  46. @@ -64,6 +66,15 @@ along with GCC; see the file COPYING3. If not see
  47. #undef WCHAR_TYPE_SIZE
  48. #define WCHAR_TYPE_SIZE 32
  49. +#undef WINT_TYPE
  50. +#define WINT_TYPE "int"
  51. +
  52. +#undef INTMAX_TYPE
  53. +#define INTMAX_TYPE "long long int"
  54. +
  55. +#undef UINTMAX_TYPE
  56. +#define UINTMAX_TYPE "long long unsigned int"
  57. +
  58. #undef LONG_DOUBLE_TYPE_SIZE
  59. #define LONG_DOUBLE_TYPE_SIZE 128
  60. @@ -73,6 +84,7 @@ along with GCC; see the file COPYING3. If not see
  61. %{shared:-shared} %{R*} \
  62. %{static:-Bstatic} \
  63. %{!static:-Bdynamic} \
  64. + %{rdynamic:-export-dynamic} \
  65. %{assert*} \
  66. -dynamic-linker /usr/libexec/ld.so"