* m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
'volatile', to defeat compiler optimizations.
+2020-05-23 Bruno Haible <bruno@clisp.org>
+
+ calloc-gnu: Avoid wrong configure results with clang.
+ * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
+ 'volatile', to defeat compiler optimizations.
+
2020-05-23 Bruno Haible <bruno@clisp.org>
isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
-# calloc.m4 serial 20
+# calloc.m4 serial 21
# Copyright (C) 2004-2020 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[AC_LANG_PROGRAM(
[AC_INCLUDES_DEFAULT],
[[int result = 0;
- char *p = calloc (0, 0);
+ char * volatile p = calloc (0, 0);
if (!p)
result |= 1;
free (p);