summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-09-13 11:12:54 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-09-13 11:13:42 -0700
commitc9f37b3ff70c0ef100919c7d55c058a62ce48d47 (patch)
treedfcd7e0121de806bbb62ecb48802a1aa87aa4d41
parentec2b9f27bd3b051e2c6c26705933b395554d0ab9 (diff)
downloadgnulib-c9f37b3ff70c0ef100919c7d55c058a62ce48d47.tar.gz
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.
-rw-r--r--ChangeLog8
-rw-r--r--lib/asyncsafe-spin.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d64252c386..6641ed9f5e 100644
--- 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
diff --git a/lib/asyncsafe-spin.c b/lib/asyncsafe-spin.c
index 870b7a21b6..3771c4c0e4 100644
--- a/lib/asyncsafe-spin.c
+++ b/lib/asyncsafe-spin.c
@@ -27,6 +27,10 @@
# include <sys/atomic_op.h>
#endif
+#if 0x590 <= __SUNPRO_C && __STDC__
+# define asm __asm
+#endif
+
#if defined _WIN32 && ! defined __CYGWIN__
/* Use Windows threads. */