From df9a71443e7cbdd9bb1aab01a4131b381ded78a8 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 26 Jun 2017 07:24:40 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/20366 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/crossgcc/patches/gcc-6.3.0_ada-raise.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 util/crossgcc/patches/gcc-6.3.0_ada-raise.patch (limited to 'util') 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 0000000000..a081957615 --- /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 + -- cgit v1.2.3