0014-m68k.diff 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. diff -ur gcc-6.4.0/gcc/config/m68k/linux.h gcc-6.4.0.new/gcc/config/m68k/linux.h
  2. --- gcc-6.4.0/gcc/config/m68k/linux.h 2016-01-04 09:30:50.000000000 -0500
  3. +++ gcc-6.4.0.new/gcc/config/m68k/linux.h 2018-06-12 20:03:47.047502695 -0400
  4. @@ -73,6 +73,9 @@
  5. #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
  6. +#undef MUSL_DYNAMIC_LINKER
  7. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-m68k.so.1"
  8. +
  9. #undef LINK_SPEC
  10. #define LINK_SPEC "-m m68kelf %{shared} \
  11. %{!shared: \
  12. diff -ur gcc-6.4.0/libgcc/config/m68k/linux-atomic.c gcc-6.4.0.new/libgcc/config/m68k/linux-atomic.c
  13. --- gcc-6.4.0/libgcc/config/m68k/linux-atomic.c 2016-01-04 09:30:50.000000000 -0500
  14. +++ gcc-6.4.0.new/libgcc/config/m68k/linux-atomic.c 2018-06-07 16:15:11.610163418 -0400
  15. @@ -33,7 +33,6 @@
  16. using the kernel helper defined below. There is no support for
  17. 64-bit operations yet. */
  18. -#include <asm/unistd.h>
  19. #include <stdbool.h>
  20. #ifndef __NR_atomic_cmpxchg_32
  21. diff -ur gcc-6.4.0/libgcc/config/m68k/linux-unwind.h gcc-6.4.0.new/libgcc/config/m68k/linux-unwind.h
  22. --- gcc-6.4.0/libgcc/config/m68k/linux-unwind.h 2016-01-04 09:30:50.000000000 -0500
  23. +++ gcc-6.4.0.new/libgcc/config/m68k/linux-unwind.h 2018-06-07 16:17:16.964591108 -0400
  24. @@ -37,7 +37,7 @@
  25. stack_t uc_stack;
  26. mcontext_t uc_mcontext;
  27. unsigned long uc_filler[80];
  28. - __sigset_t uc_sigmask;
  29. + sigset_t uc_sigmask;
  30. };
  31. #define MD_FALLBACK_FRAME_STATE_FOR m68k_fallback_frame_state