aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/compcert/fix-cprepro-options.patch
diff options
context:
space:
mode:
Diffstat (limited to 'non-free/compcert/fix-cprepro-options.patch')
-rw-r--r--non-free/compcert/fix-cprepro-options.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/non-free/compcert/fix-cprepro-options.patch b/non-free/compcert/fix-cprepro-options.patch
new file mode 100644
index 0000000000..7354b197af
--- /dev/null
+++ b/non-free/compcert/fix-cprepro-options.patch
@@ -0,0 +1,47 @@
+--- a/configure
++++ b/configure
+@@ -224,7 +224,7 @@
+ cc="${toolprefix}gcc"
+ clinker="${toolprefix}gcc"
+ cprepro="${toolprefix}gcc"
+- cprepro_options="-std=c99 -U__GNUC__ '-D__REDIRECT(name,proto,alias)=name proto' '-D__REDIRECT_NTH(name,proto,alias)=name proto' -E"
++ cprepro_options="-std=c99 -U__GNUC__ '-D__builtin_constant_p(x)=0' '-D__REDIRECT(name,proto,alias)=name proto' '-D__REDIRECT_NTH(name,proto,alias)=name proto' -E"
+ libmath="-lm"
+ system="linux"
+ fi
+@@ -274,7 +274,7 @@
+ cc="${toolprefix}gcc"
+ clinker="${toolprefix}gcc"
+ cprepro="${toolprefix}gcc"
+- cprepro_options="-std=c99 -U__GNUC__ -E"
++ cprepro_options="-std=c99 -U__GNUC__ '-D__builtin_constant_p(x)=0' -U__SIZEOF_INT128__ -E"
+ libmath="-lm"
+ system="linux"
+ ;;
+@@ -320,7 +320,7 @@
+ clinker="${toolprefix}gcc"
+ clinker_options="-m32"
+ cprepro="${toolprefix}gcc"
+- cprepro_options="-std=c99 -m32 -U__GNUC__ -E"
++ cprepro_options="-std=c99 -m32 -U__GNUC__ '-D__builtin_constant_p(x)=0' -E"
+ libmath="-lm"
+ system="linux"
+ ;;
+@@ -380,7 +380,7 @@
+ clinker="${toolprefix}gcc"
+ clinker_options="-m64"
+ cprepro="${toolprefix}gcc"
+- cprepro_options="-std=c99 -m64 -U__GNUC__ -E"
++ cprepro_options="-std=c99 -m64 -U__GNUC__ '-D__builtin_constant_p(x)=0' -U__SIZEOF_INT128__ -E"
+ libmath="-lm"
+ system="linux"
+ ;;
+@@ -423,7 +423,7 @@
+ clinker="${toolprefix}gcc"
+ clinker_options="$model_options"
+ cprepro="${toolprefix}gcc"
+- cprepro_options="$model_options -std=c99 -U__GNUC__ -E"
++ cprepro_options="$model_options -std=c99 -U__GNUC__ '-D__builtin_constant_p(x)=0' -U__SIZEOF_INT128__ -E"
+ libmath="-lm"
+ system="linux"
+ fi