summaryrefslogtreecommitdiff
path: root/include/libc-symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libc-symbols.h')
-rw-r--r--include/libc-symbols.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 6b9731e80..2729d306c 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -85,6 +85,12 @@
# define __cast__(_to)
#endif
+#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
+# define attribute_optimize(lvl) __attribute__ ((optimize(x)))
+#else
+# define attribute_optimize(lvl)
+#endif
+
#define attribute_unused __attribute__ ((unused))
#if defined __GNUC__ || defined __ICC