summaryrefslogtreecommitdiffstats
path: root/util/crossgcc/patches
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2017-06-26 07:24:40 +0200
committerPatrick Georgi <pgeorgi@google.com>2017-06-27 05:27:56 +0000
commitdf9a71443e7cbdd9bb1aab01a4131b381ded78a8 (patch)
tree290cabac16004e5c3193110b856d81271f533511 /util/crossgcc/patches
parenta7a5a56370db557a8d5f02a22de101939a0d3c0b (diff)
downloadcoreboot-df9a71443e7cbdd9bb1aab01a4131b381ded78a8.tar.gz
coreboot-df9a71443e7cbdd9bb1aab01a4131b381ded78a8.tar.bz2
coreboot-df9a71443e7cbdd9bb1aab01a4131b381ded78a8.zip
util/crossgcc: Fix building gcc 6.3.0 with clang
It assumes that __builtin_longjmp takes a void **, which is decidedly distinctive from void *. Change-Id: I1930bb01dd62bd6abf0688b118236db2a9299e40 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/20366 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc/patches')
-rw-r--r--util/crossgcc/patches/gcc-6.3.0_ada-raise.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/crossgcc/patches/gcc-6.3.0_ada-raise.patch b/util/crossgcc/patches/gcc-6.3.0_ada-raise.patch
new file mode 100644
index 000000000000..a081957615b7
--- /dev/null
+++ b/util/crossgcc/patches/gcc-6.3.0_ada-raise.patch
@@ -0,0 +1,11 @@
+--- gcc-6.3.0/gcc/ada/raise.c.orig 2017-06-24 07:06:41.524685169 +0200
++++ gcc-6.3.0/gcc/ada/raise.c 2017-06-24 07:07:12.945162120 +0200
+@@ -55,7 +55,7 @@
+ void
+ _gnat_builtin_longjmp (void *ptr, int flag ATTRIBUTE_UNUSED)
+ {
+- __builtin_longjmp (ptr, 1);
++ __builtin_longjmp ((void **)ptr, 1);
+ }
+ #endif
+