diff options
Diffstat (limited to 'mdk-stage1/dietlibc/dietwarning.h')
-rw-r--r-- | mdk-stage1/dietlibc/dietwarning.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/dietwarning.h b/mdk-stage1/dietlibc/dietwarning.h new file mode 100644 index 000000000..f7c67a175 --- /dev/null +++ b/mdk-stage1/dietlibc/dietwarning.h @@ -0,0 +1,23 @@ +#include "dietfeatures.h" + +#ifdef WANT_LINKER_WARNINGS + +#ifndef __ASSEMBLER__ + +#define link_warning(symbol,msg) \ + asm (".section .gnu.warning." symbol "\n\t.string \"" msg "\"\n\t.previous"); + +#else + +#define link_warning(symbol,msg) \ + .section .gnu.warning.##symbol ;\ + .string msg ;\ + .previous + +#endif + +#else + +#define link_warning(foo,bar) + +#endif |