aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorroconnor-blockstream <roconnor@blockstream.com>2021-10-16 04:21:38 -0400
committerGitHub <noreply@github.com>2021-10-16 10:21:38 +0200
commita420914d237c96d0c5cd3a9055a0338c0d6805d4 (patch)
tree43c9e4678360d4f0f6de29b2d6a3e1ff6a1be28a /configure
parentd04d3963f9d095f5e444226e6d62bc5fc5e4921b (diff)
downloadcompcert-kvx-a420914d237c96d0c5cd3a9055a0338c0d6805d4.tar.gz
compcert-kvx-a420914d237c96d0c5cd3a9055a0338c0d6805d4.zip
Explicitly remove __SIZEOF_INT128__ macro definition. (#419)
CompCert does not support 128-bit integers, but the gcc and clang preprocessors do include support as part of its 'built-in'. A common way of testing for 128-bit integer support is to check to see if `__SIZEOF_INT128__` is defined. Eliminating this macro prevents software from believing that 128-bit integers are supported.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 1b224319..7dfc6e30 100755
--- a/configure
+++ b/configure
@@ -347,7 +347,7 @@ if test "$arch" = "x86" -a "$bitsize" = "64"; then
cc_options="-m64"
casm_options="-m64 -c"
clinker_options="-m64"
- cprepro_options="-std=c99 -m64 -U__GNUC__ -E"
+ cprepro_options="-std=c99 -m64 -U__GNUC__ -U__SIZEOF_INT128__ -E"
system="bsd"
;;
linux)
@@ -355,7 +355,7 @@ if test "$arch" = "x86" -a "$bitsize" = "64"; then
cc_options="-m64"
casm_options="-m64 -c"
clinker_options="-m64"
- cprepro_options="-std=c99 -m64 -U__GNUC__ -E"
+ cprepro_options="-std=c99 -m64 -U__GNUC__ -U__SIZEOF_INT128__ -E"
system="linux"
;;
macos|macosx)
@@ -364,7 +364,7 @@ if test "$arch" = "x86" -a "$bitsize" = "64"; then
casm_options="-arch x86_64 -c"
clinker_options="-arch x86_64"
clinker_needs_no_pie=false
- cprepro_options="-std=c99 -arch x86_64 -U__GNUC__ -U__clang__ -U__BLOCKS__ '-D__attribute__(x)=' '-D__asm(x)=' '-D_Nullable=' '-D_Nonnull=' '-D__DARWIN_OS_INLINE=static inline' -Wno-\\#warnings -E"
+ cprepro_options="-std=c99 -arch x86_64 -U__GNUC__ -U__SIZEOF_INT128__ -U__clang__ -U__BLOCKS__ '-D__attribute__(x)=' '-D__asm(x)=' '-D_Nullable=' '-D_Nonnull=' '-D__DARWIN_OS_INLINE=static inline' -Wno-\\#warnings -E"
libmath=""
system="macos"
;;
@@ -373,7 +373,7 @@ if test "$arch" = "x86" -a "$bitsize" = "64"; then
cc_options="-m64"
casm_options="-m64 -c"
clinker_options="-m64"
- cprepro_options="-std=c99 -m64 -U__GNUC__ '-D__attribute__(x)=' -E"
+ cprepro_options="-std=c99 -m64 -U__GNUC__ -U__SIZEOF_INT128__ '-D__attribute__(x)=' -E"
system="cygwin"
;;
*)