From 84d38195051579957da6fd26114d09d9413f92a1 Mon Sep 17 00:00:00 2001 From: cancel Date: Tue, 10 Nov 2020 11:28:25 +0900 Subject: [PATCH] Fix minimum-size attribute (currently unused) in gcc This attribute macro, ORCA_OPT_MINSIZE, isn't currently in use in any of the code, though it occasionally gets used when testing things. I had previously only tested this under clang, and hadn't tested it under gcc. Some of the syntax was missing for gcc's version. This commit fixes it. --- base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.h b/base.h index e067300..446b627 100644 --- a/base.h +++ b/base.h @@ -11,7 +11,7 @@ #if defined(__clang__) #define ORCA_OPT_MINSIZE __attribute__((minsize)) #elif defined(__GNUC__) -#define ORCA_OPT_MINSIZE __attribute__(("Os")) +#define ORCA_OPT_MINSIZE __attribute__((optimize("Os"))) #else #define ORCA_OPT_MINSIZE #endif