OSDN Git Service

attribute_optimize: fix typo with args
[uclinux-h8/uClibc.git] / include / libc-symbols.h
index 6b9731e..4615a6a 100644 (file)
 # define __cast__(_to)
 #endif
 
+#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
+# define attribute_optimize(x) __attribute__ ((optimize(x)))
+#else
+# define attribute_optimize(x)
+#endif
+
 #define attribute_unused __attribute__ ((unused))
 
 #if defined __GNUC__ || defined __ICC