[uClibc-cvs] uClibc/include features.h,1.54,1.55
Erik Andersen
andersen at uclibc.org
Tue Sep 9 09:29:16 UTC 2003
Update of /var/cvs/uClibc/include
In directory winder:/tmp/cvs-serv30868/include
Modified Files:
features.h
Log Message:
sigh. The cris compiler doesn't do link_warning's....
Index: features.h
===================================================================
RCS file: /var/cvs/uClibc/include/features.h,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- features.h 3 Sep 2003 03:23:31 -0000 1.54
+++ features.h 9 Sep 2003 09:29:12 -0000 1.55
@@ -388,10 +388,14 @@
# define weak_const_function __attribute__ ((weak, __const__))
/* Tacking on "\n\t#" to the section name makes gcc put it's bogus
* section attributes on what looks like a comment to the assembler. */
-# define link_warning(symbol, msg) \
+# if defined(__cris__)
+# define link_warning(symbol, msg)
+# else
+# define link_warning(symbol, msg) \
asm (".section " ".gnu.warning." #symbol "\n\t.previous"); \
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((unused, section (".gnu.warning." #symbol "\n\t#"))) = msg;
+#endif
#else /* !defined __HAVE_ELF__ */
# define strong_alias(name, aliasname) _strong_alias (name, aliasname)
# define weak_alias(name, aliasname) _strong_alias (name, aliasname)
More information about the uClibc-cvs
mailing list