Merge from mainline.
[official-gcc.git] / gcc / config / bfin / uclinux.h
blob57e062dd68e608e1dae06880ba3130f5ae4acf76
1 /* The GNU C++ standard library requires that these macros be defined. */
2 #undef CPLUSPLUS_CPP_SPEC
3 #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
5 #undef STARTFILE_SPEC
6 #define STARTFILE_SPEC \
7 "%{!shared: crt1%O%s} crti%O%s crtbegin%O%s crtlibid%O%s"
9 #undef ENDFILE_SPEC
10 #define ENDFILE_SPEC \
11 "crtend%O%s crtn%O%s"
13 #undef LIB_SPEC
14 #define LIB_SPEC "%{pthread:-lpthread} -lc"
16 #ifdef __BFIN_FDPIC__
17 #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
18 asm (SECTION_OP); \
19 asm ("P3 = [SP + 20];\n\tcall " USER_LABEL_PREFIX #FUNC ";"); \
20 asm (TEXT_SECTION_ASM_OP);
21 #endif
23 #define NO_IMPLICIT_EXTERN_C