summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-08-13 07:48:55 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-09-18 11:43:33 -0700
commitc72a5ae6e97aeffdb07cacde7d3c972ad8c60bd5 (patch)
tree51ff844c99d590639eb58b08b0f2a642af447123
parentda2596e578cb357130da0bdbf91da92c8f846ff6 (diff)
downloaduClibc-alpine-c72a5ae6e97aeffdb07cacde7d3c972ad8c60bd5.tar.bz2
uClibc-alpine-c72a5ae6e97aeffdb07cacde7d3c972ad8c60bd5.tar.xz
setup attribute_optimize which comes with gcc-4.4+
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-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