ref: 84d38195051579957da6fd26114d09d9413f92a1
parent: 8557082779d2a244306a6a1ced1b30712f401660
author: cancel <cancel@cancel.fm>
date: Tue Nov 10 06:28:25 EST 2020
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.
--- 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
--
⑨