aboutsummaryrefslogtreecommitdiff
path: root/libgomp/config.h.in
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-03-04 09:43:34 +0100
committerJakub Jelinek <jakub@redhat.com>2021-03-04 09:43:34 +0100
commitf65e551f737ee3cb3a6ae45bd8168d959feacfa1 (patch)
tree94f8161286877c7a16a3d97b991cfe9f4abb51eb /libgomp/config.h.in
parentd259ab15761de2d938c24abfba9cdcd2fef91655 (diff)
downloadgcc-f65e551f737ee3cb3a6ae45bd8168d959feacfa1.zip
gcc-f65e551f737ee3cb3a6ae45bd8168d959feacfa1.tar.gz
gcc-f65e551f737ee3cb3a6ae45bd8168d959feacfa1.tar.bz2
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.
Diffstat (limited to 'libgomp/config.h.in')
-rw-r--r--libgomp/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgomp/config.h.in b/libgomp/config.h.in
index dd8a0a0..390e548 100644
--- a/libgomp/config.h.in
+++ b/libgomp/config.h.in
@@ -183,6 +183,9 @@
/* Define if all infrastructure, needed for plugins, is supported. */
#undef PLUGIN_SUPPORT
+/* The size of `void *', as computed by sizeof. */
+#undef SIZEOF_VOID_P
+
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS