]> Savannah Git Hosting - gnulib.git/commitdiff
explicit_bzero: work with gcc -std=c99
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Nov 2022 17:59:32 +0000 (09:59 -0800)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Jan 2023 09:18:19 +0000 (10:18 +0100)
* lib/explicit_bzero.c (explicit_bzero) [__GNUC__ && !__clang__]:
Use __asm__ instead of asm.

ChangeLog
lib/explicit_bzero.c

index 19a3dfb02496eda2b65e05089a03ef1061d02f0f..a236f89292aa04da2b1124826a1763fd54ca2aeb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-11-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       explicit_bzero: work with gcc -std=c99
+       * lib/explicit_bzero.c (explicit_bzero) [__GNUC__ && !__clang__]:
+       Use __asm__ instead of asm.
+
 2022-11-20  Bruno Haible  <bruno@clisp.org>
 
        posix_spawn tests: Fix compilation error (regression 2022-09-14).
index ad0bfd170ca5c4abb744a4d24cd645e4da111277..584f98292434571b901413bf097c2dab3b11d23d 100644 (file)
@@ -57,7 +57,7 @@ explicit_bzero (void *s, size_t len)
 #elif defined __GNUC__ && !defined __clang__
   memset (s, '\0', len);
   /* Compiler barrier.  */
-  asm volatile ("" ::: "memory");
+  __asm__ volatile ("" ::: "memory");
 #elif defined __clang__
   memset (s, '\0', len);
   /* Compiler barrier.  */