patch-gcc_config_alpha_openbsd_h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. $OpenBSD: patch-gcc_config_alpha_openbsd_h,v 1.3 2016/07/14 07:20:28 tobiasu Exp $
  2. --- gcc/config/alpha/openbsd.h.orig Sun Sep 27 15:20:23 2009
  3. +++ gcc/config/alpha/openbsd.h Sat Jul 9 22:46:36 2016
  4. @@ -19,6 +19,28 @@ along with GCC; see the file COPYING3. If not see
  5. /* Controlling the compilation driver. */
  6. +#undef TARGET_DEFAULT
  7. +#define TARGET_DEFAULT \
  8. + (MASK_FPREGS | MASK_IEEE | MASK_IEEE_CONFORMANT | MASK_GAS)
  9. +
  10. + #define LINK_SPEC \
  11. + "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \
  12. + %{shared:-shared} %{R*} \
  13. + %{static:-Bstatic} \
  14. + %{!static:-Bdynamic} \
  15. + %{rdynamic:-export-dynamic} \
  16. + %{assert*} \
  17. + %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}"
  18. +
  19. +/* As an elf system, we need crtbegin/crtend stuff. */
  20. +#undef STARTFILE_SPEC
  21. +#define STARTFILE_SPEC "\
  22. + %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} \
  23. + %{!p:%{!static:crt0%O%s} %{static:%{nopie:crt0%O%s} \
  24. + %{!nopie:rcrt0%O%s}}}} crtbegin%O%s} %{shared:crtbeginS%O%s}"
  25. +#undef ENDFILE_SPEC
  26. +#define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}"
  27. +
  28. /* run-time target specifications */
  29. #define TARGET_OS_CPP_BUILTINS() \
  30. do { \
  31. @@ -28,18 +50,27 @@ along with GCC; see the file COPYING3. If not see
  32. /* Layout of source language data types. */
  33. -/* This must agree with <machine/ansi.h> */
  34. +/* This must agree with <machine/_types.h> */
  35. #undef SIZE_TYPE
  36. #define SIZE_TYPE "long unsigned int"
  37. #undef PTRDIFF_TYPE
  38. #define PTRDIFF_TYPE "long int"
  39. +#undef INTMAX_TYPE
  40. +#define INTMAX_TYPE "long long int"
  41. +
  42. +#undef UINTMAX_TYPE
  43. +#define UINTMAX_TYPE "long long unsigned int"
  44. +
  45. #undef WCHAR_TYPE
  46. #define WCHAR_TYPE "int"
  47. #undef WCHAR_TYPE_SIZE
  48. #define WCHAR_TYPE_SIZE 32
  49. +
  50. +#undef WINT_TYPE
  51. +#define WINT_TYPE "int"
  52. #define LOCAL_LABEL_PREFIX "."