re PR libgomp/90585 (libgomp hsa plugin ftbfs in the x32 multilib variant)
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 May 2019 08:59:37 +0000 (10:59 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 May 2019 08:59:37 +0000 (10:59 +0200)
commitb5c26449f365b603b3cf4c0f9b576ab7c12c2f40
treeecc1b0ff600342ae9503fbb59891bd549951a4d6
parentd2e8b6ae3760c72d1d30e0d2b2652c98edb8bc87
re PR libgomp/90585 (libgomp hsa plugin ftbfs in the x32 multilib variant)

PR libgomp/90585
* plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
HAVE_INTTYPES_H is defined.
(print_uint64_t): New typedef.
(PRIu64): Define if HAVE_INTTYPES_H is not defined.
(print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
"lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
(release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
before casting to void *.
* plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
* oacc-mem.c: Don't include config.h nor stdint.h.
* target.c: Don't include config.h.
* oacc-cuda.c: Likewise.
* oacc-host.c: Don't include stdint.h.

From-SVN: r271597
libgomp/ChangeLog
libgomp/oacc-cuda.c
libgomp/oacc-host.c
libgomp/oacc-mem.c
libgomp/plugin/plugin-hsa.c
libgomp/plugin/plugin-nvptx.c
libgomp/target.c