csky.patch 511 B

123456789101112
  1. diff -Nur gcc-11.2.0.orig/libgcc/config/csky/linux-atomic.c gcc-11.2.0/libgcc/config/csky/linux-atomic.c
  2. --- gcc-11.2.0.orig/libgcc/config/csky/linux-atomic.c 2021-07-28 08:55:08.760307899 +0200
  3. +++ gcc-11.2.0/libgcc/config/csky/linux-atomic.c 2021-12-14 14:19:23.685729233 +0100
  4. @@ -24,7 +24,7 @@
  5. <http://www.gnu.org/licenses/>. */
  6. /* Kernel helper for compare-and-exchange. */
  7. -inline int
  8. +int
  9. __kernel_cmpxchg (int oldval, int newval, volatile int *ptr)
  10. {
  11. register int _a0 asm ("a0") = oldval;