affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Nov 2018 20:17:40 +0000 (21:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Nov 2018 20:17:40 +0000 (21:17 +0100)
commit9666c52203b755611209dc32190a22319516e56a
tree1370d120e16846f9701579bc47f8290563d87579
parent213fd71709e40dbcf601f765e80a56b1c624e4a8
affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.

* affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
(gomp_display_affinity): Use __builtin_choose_expr to handle
properly handle argument having integral, or pointer or some other
type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
with uint64_t type instead of %llx and unsigned long long.

From-SVN: r265985
libgomp/ChangeLog
libgomp/affinity-fmt.c