1
0

tilegx-fix.patch 912 B

123456789101112131415161718192021222324
  1. diff -Nur gcc-5.3.0.orig/gcc/config/tilegx/linux.h gcc-5.3.0/gcc/config/tilegx/linux.h
  2. --- gcc-5.3.0.orig/gcc/config/tilegx/linux.h 2015-01-05 13:33:28.000000000 +0100
  3. +++ gcc-5.3.0/gcc/config/tilegx/linux.h 2016-04-29 07:14:10.534973350 +0200
  4. @@ -55,8 +55,6 @@
  5. /* For __clear_cache in libgcc2.c. */
  6. #ifdef IN_LIBGCC2
  7. -#include <arch/icache.h>
  8. -
  9. /* Use the minimum page size of 4K. Alternatively we can call
  10. getpagesize() but it introduces a libc dependence. */
  11. #undef CLEAR_INSN_CACHE
  12. diff -Nur gcc-5.3.0.orig/libgcc/config/tilepro/atomic.h gcc-5.3.0/libgcc/config/tilepro/atomic.h
  13. --- gcc-5.3.0.orig/libgcc/config/tilepro/atomic.h 2015-01-05 13:33:28.000000000 +0100
  14. +++ gcc-5.3.0/libgcc/config/tilepro/atomic.h 2016-04-29 07:15:11.149301459 +0200
  15. @@ -93,7 +93,7 @@
  16. #endif
  17. #ifdef __tilegx__
  18. -#include <arch/spr_def.h>
  19. +#define SPR_CMPEXCH_VALUE 0x2780
  20. #else
  21. #include <asm/unistd.h>
  22. #endif