source:
trunk/sys/dietlibc/dietwarning.h
@
363
Last change on this file since 363 was 1, checked in by , 8 years ago | |
---|---|
File size: 356 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include "dietfeatures.h" |
2 | ||
3 | #ifdef WANT_LINKER_WARNINGS | |
4 | ||
5 | #ifndef __ASSEMBLER__ | |
6 | ||
7 | #define link_warning(symbol,msg) \ | |
8 | asm (".section .gnu.warning." symbol "\n\t.string \"" msg "\"\n\t.previous"); | |
9 | ||
10 | #else | |
11 | ||
12 | #define link_warning(symbol,msg) \ | |
13 | .section .gnu.warning.##symbol ;\ | |
14 | .string msg ;\ | |
15 | .previous | |
16 | ||
17 | #endif | |
18 | ||
19 | #else | |
20 | ||
21 | #define link_warning(foo,bar) | |
22 | ||
23 | #endif |
Note: See TracBrowser
for help on using the repository browser.