* lib/explicit_bzero.c (explicit_bzero): Add a compiler barrier for
clang.
+2021-01-23 Bastien Roucariès <rouca@debian.org>
+
+ explicit_bzero: Add support for clang.
+ * lib/explicit_bzero.c (explicit_bzero): Add a compiler barrier for
+ clang.
+
2021-01-21 Paul Eggert <eggert@cs.ucla.edu>
Port FALLTHROUGH to clang 3.4 and earlier
# if defined __GNUC__ && !defined __clang__
/* Compiler barrier. */
asm volatile ("" ::: "memory");
+# elif defined __clang__
+ /* Compiler barrier. */
+ /* With asm ("" ::: "memory") LLVM analyzes uses of 's' and finds that the
+ whole thing is dead and eliminates it. Use 'g' to work around this
+ problem. See <https://bugs.llvm.org/show_bug.cgi?id=15495#c11>. */
+ __asm__ volatile ("" : : "g"(s) : "memory");
# endif
#endif
}