libgomp: Use sizeof(void*) based checks instead of looking through $CC $CFLAGS for...
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Mar 2021 08:43:34 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 4 Mar 2021 08:43:34 +0000 (09:43 +0100)
commitf65e551f737ee3cb3a6ae45bd8168d959feacfa1
tree94f8161286877c7a16a3d97b991cfe9f4abb51eb
parentd259ab15761de2d938c24abfba9cdcd2fef91655
libgomp: Use sizeof(void*) based checks instead of looking through $CC $CFLAGS for -m32/-mx32

Some gcc configurations default to -m32 but support -m64 too.  This patch
just makes the ILP32 tests more reliable by following what e.g. libsanitizer
configury does.

2021-03-04  Jakub Jelinek  <jakub@redhat.com>

* configure.ac: Add AC_CHECK_SIZEOF([void *]).
* plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
checking of -m32 or -mx32 options on the command line.
* config.h.in: Regenerated.
* configure: Regenerated.
libgomp/config.h.in
libgomp/configure
libgomp/configure.ac
libgomp/plugin/configfrag.ac