From 51e47180f0fefbb111635c067feb10dca1b0dc9f Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Fri, 19 Oct 2018 09:22:47 -0700 Subject: [PATCH] toolchain: xcc: fake __builtin_umul[ll]_overflow XCC doesn't provide these builtins so we have to define them with minimal functionality for testing. Signed-off-by: Daniel Leung --- include/toolchain/xcc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/toolchain/xcc.h b/include/toolchain/xcc.h index 0f0c4fd18d..2e9ced3948 100644 --- a/include/toolchain/xcc.h +++ b/include/toolchain/xcc.h @@ -43,5 +43,7 @@ */ #define __builtin_add_overflow(a, b, output) ({ *output = (a) + (b); 0; }) #define __builtin_mul_overflow(a, b, output) ({ *output = (a) * (b); 0; }) +#define __builtin_umul_overflow(a, b, output) ({ *output = (a) * (b); 0; }) +#define __builtin_umulll_overflow(a, b, output) ({ *output = (a) * (b); 0; }) #endif