Update recommended gnulib commit
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 7 Jun 2020 10:24:27 +0000 (12:24 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 7 Jun 2020 11:25:34 +0000 (13:25 +0200)
README.Git
tests/language/lexer/scan-test.c
tests/language/lexer/segment-test.c

index 68cc4d8f773e4709d30c60ac10a1f83bfe956c8c..809bfe87116ce75f2cdc21a6656834984145d7fd 100644 (file)
@@ -36,11 +36,16 @@ This version of PSPP should work with the Gnulib commit shown below.
 Gnulib does not maintain a stable API or ABI, so it is possible that
 PSPP will not work with older or newer versions of Gnulib.
 
-    commit 9ce9be2ef0cb1180e35dfe9dfbbe90d774b374bd (HEAD, origin/master, origin/HEAD)
-    Author: Karl Berry <karl@freefriends.org>
-    Date:   Thu Jul 4 08:23:14 2019 -0700
 
-       autoupdate
+  commit 1e972a8a37c153ddc15e604592f84f939eb3c2ad
+  Author: Bruno Haible <bruno@clisp.org>
+  Date:   Sat Jun 6 10:14:24 2020 +0200
+
+    calloc-gnu tests: Avoid a test failure with clang.
+
+    * tests/test-calloc-gnu.c (main): Mark the pointer variable as
+    'volatile', to defeat compiler optimizations.
+
 
 To clone Gnulib into a directory named "gnulib" using Git, and then
 check out this particular commit, run these commands:
index abbf0f9455196331dc617dc47abd0ddee6926bef..6f76d44f516c4caaadec9ef77b362e6ca8f5c4d3 100644 (file)
@@ -61,8 +61,8 @@ main (int argc, char *argv[])
 
   /* Read from stdin into 'input'. */
   input = (!strcmp (file_name, "-")
-           ? fread_file (stdin, &length)
-           : read_file (file_name, &length));
+           ? fread_file (stdin, 0, &length)
+           : read_file (file_name, 0, &length));
   if (input == NULL)
     error (EXIT_FAILURE, errno, "reading %s failed", file_name);
 
index 2cd141cfe01598972fc83f97a26cf871d4912088..62db4814266395b84315857503fd4bfbf33fdc9d 100644 (file)
@@ -73,8 +73,8 @@ main (int argc, char *argv[])
   /* Read from stdin into 'input'.  Ensure that 'input' ends in a new-line
      followed by a null byte. */
   input = (!strcmp (file_name, "-")
-           ? fread_file (stdin, &length)
-           : read_file (file_name, &length));
+           ? fread_file (stdin, 0, &length)
+           : read_file (file_name, 0, &length));
   if (input == NULL)
     error (EXIT_FAILURE, errno, "reading %s failed", file_name);