Paul Eggert wrote:
>+      * lib/asyncsafe-spin.c (asm) [0x590 <= __SUNPRO_C && __STDC__]:
>+      #define to __asm.

Let me do the same thing also to lib/simple-atomic.c. (Untested, but
"should work".)


2021-09-13  Bruno Haible  <[email protected]>

        simple-atomic: Port to Oracle Studio 12.6.
        * lib/simple-atomic.c (asm) [0x590 <= __SUNPRO_C && __STDC__]:
        #define to __asm.

diff --git a/lib/simple-atomic.c b/lib/simple-atomic.c
index da78cd3ec..b34c5c8e5 100644
--- a/lib/simple-atomic.c
+++ b/lib/simple-atomic.c
@@ -21,6 +21,10 @@
 /* Specification.  */
 #include "simple-atomic.h"
 
+#if 0x590 <= __SUNPRO_C && __STDC__
+# define asm __asm
+#endif
+
 #if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows.  */
 




Reply via email to