summaryrefslogtreecommitdiff
path: root/include/libc-symbols.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-08-13 07:48:55 -0400
committerMike Frysinger <vapier@gentoo.org>2009-09-15 18:00:40 -0400
commit308f5c6e5fd56ea3d1a5512e34388aad788f1180 (patch)
tree5780bee1ecd55b332dab7e448b39b3133041b9c6 /include/libc-symbols.h
parent3a5c27d1ec9409faf9c422b1eae7cc4db352cbfe (diff)
setup attribute_optimize which comes with gcc-4.4+
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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