diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-09 09:29:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-09 09:29:12 +0000 |
commit | 4ad53a1548e593c467879645ce4356ce18d80a84 (patch) | |
tree | 9066b9197ab9d86be3a35991459a91d8ebdde15d | |
parent | d3fed856d7ad00472845dcf4ed38988fcd0fbd64 (diff) |
sigh. The cris compiler doesn't do link_warning's....
-rw-r--r-- | include/features.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/features.h b/include/features.h index 1e2d76a05..bcc2596d3 100644 --- a/include/features.h +++ b/include/features.h @@ -388,10 +388,14 @@ uClibc was built without large file support enabled. # 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) |