libgomp/
2019-09-18 Tobias Burnus <tobias@codesourcery.com>
* linux/gomp_print.c (gomp_print_integer): Use PRId64 if available,
otherwise cast for %ld.
(cherry picked from openacc-gcc-9-branch commit
8a8ebae1a419e1d3642d22874195acf6d5bae7d8)
+2019-09-18 Tobias Burnus <tobias@codesourcery.com>
+
+ * linux/gomp_print.c (gomp_print_integer): Use PRId64 if available,
+ otherwise cast for %ld.
+
2019-09-17 Julian Brown <julian@codesourcery.com>
* libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_host2dev): Update
#include <stdio.h>
#include <stdint.h>
+#include "config.h" /* For HAVE_INTTYPES_H. */
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h> /* For PRId64. */
+#endif
+
void
gomp_print_string (const char *msg, const char *value)
{
void
gomp_print_integer (const char *msg, int64_t value)
{
- printf ("%s%ld\n", msg, value);
+#ifdef HAVE_INTTYPES_H
+ printf ("%s%" PRId64 "\n", msg, value);
+#else
+ printf ("%s%ld\n", msg, (long) value);
+#endif
}
void