]> Savannah Git Hosting - gnulib.git/commitdiff
asyncsafe-spin: port to Oracle Studio 12.6 sparc
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Sep 2021 18:12:54 +0000 (11:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Sep 2021 18:13:42 +0000 (11:13 -0700)
Problem reported by Dennis Clarke via Eric Blake in:
https://lists.gnu.org/r/bug-gnulib/2021-09/msg00056.html
* lib/asyncsafe-spin.c (asm) [0x590 <= __SUNPRO_C && __STDC__]:
#define to __asm.

ChangeLog
lib/asyncsafe-spin.c

index d64252c386124e5f491fdc7c89b792f7793c7931..6641ed9f5e6c477822d22e45fc5cfcd503afd26f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-09-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       asyncsafe-spin: port to Oracle Studio 12.6 sparc
+       Problem reported by Dennis Clarke via Eric Blake in:
+       https://lists.gnu.org/r/bug-gnulib/2021-09/msg00056.html
+       * lib/asyncsafe-spin.c (asm) [0x590 <= __SUNPRO_C && __STDC__]:
+       #define to __asm.
+
 2021-09-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        stdint-tests: long long preproc on recent Sun C
index 870b7a21b6dbed56092a03ea2ec69d4d1c8bbdf7..3771c4c0e4afca11c72aae7e8529eb6241dc1542 100644 (file)
 # include <sys/atomic_op.h>
 #endif
 
+#if 0x590 <= __SUNPRO_C && __STDC__
+# define asm __asm
+#endif
+
 #if defined _WIN32 && ! defined __CYGWIN__
 /* Use Windows threads.  */