+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
+ * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
+ a 'char *'.
+ Reported by Rainer Tammer.
+
2010-07-30 Bruno Haible <bruno@clisp.org>
unlink: Update regarding AIX.
-# strtok_r.m4 serial 10
+# strtok_r.m4 serial 11
dnl Copyright (C) 2002-2004, 2006-2007, 2009-2010 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
#include <stdlib.h>
#include <string.h>
]],
- [[char delimiters[] = "xxxxxxxx";
- char *save_ptr = (char *) 0xd0d0;
+ [[static const char dummy[] = "\177\01a";
+ char delimiters[] = "xxxxxxxx";
+ char *save_ptr = (char *) dummy;
strtok_r (delimiters, "x", &save_ptr);
strtok_r (NULL, "x", &save_ptr);
return 0;