summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/dietwarning.h
blob: f7c67a175ef1adb5efe6512c9b7f7f03826e42c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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