aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorMarvin Borner2021-06-12 22:10:07 +0200
committerMarvin Borner2021-06-12 22:10:07 +0200
commitd832f9ddc9187c83a52a724d4ea39aea08de485b (patch)
tree5aeff02924d552add90813fd324ab4e4807564a4 /libs
parentf60ab15600bc58233eec659eb3a76c5432fde69a (diff)
Fixed weird bugs without optimizations
I may have to revisit the exact problem in the future though.
Diffstat (limited to 'libs')
-rw-r--r--libs/libc/inc/def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/libc/inc/def.h b/libs/libc/inc/def.h
index 84656b4..0addeb5 100644
--- a/libs/libc/inc/def.h
+++ b/libs/libc/inc/def.h
@@ -69,6 +69,7 @@ typedef long double f80;
#define USED_FUNC ATTR((used))
#define UNUSED_FUNC ATTR((unused))
#define NO_SANITIZE ATTR((no_sanitize("undefined")))
+#define OPTIMIZE(level) ATTR((optimize(level)))
#define ALIGNED(align) ATTR((aligned(align)))
/**