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>
This commit is contained in:
Patrick Georgi 2017-06-26 07:24:40 +02:00 committed by Patrick Georgi
parent a7a5a56370
commit df9a71443e
1 changed files with 11 additions and 0 deletions

View File

@ -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