From e98e96c28c155a7a4ffd0c25b9e4a6c08ebf6520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 6 Jan 2022 00:07:36 +0100 Subject: [PATCH] decode: Remove inline hint on table_walk() To avoid GCC warnings when building with `-Os`: warning: inlining failed in call to 'table_walk': call is unlikely and code size would grow [-Winline] I don't know if this causes a performance regression when optimizing for speed instead of size, but perhaps there's a different way we can help the compiler make this decision in such cases. --- decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode.c b/decode.c index ef400b4..80b1857 100644 --- a/decode.c +++ b/decode.c @@ -31,7 +31,7 @@ typedef enum DecodeMode DecodeMode; #define ENTRY_TABLE_ROOT 8 #define ENTRY_MASK 7 -static inline unsigned +static unsigned table_walk(unsigned cur_idx, unsigned entry_idx, unsigned* out_kind) { static __attribute__((aligned(16))) const uint16_t _decode_table[] = { #define FD_DECODE_TABLE_DATA