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)"
6 #define STARTFILE_SPEC \
7 "%{!shared: crt1%O%s} crti%O%s crtbegin%O%s crtlibid%O%s"
10 #define ENDFILE_SPEC \
14 #define LIB_SPEC "%{pthread:-lpthread} -lc"
17 #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
19 asm ("P3 = [SP + 20];\n\tcall " USER_LABEL_PREFIX #FUNC ";"); \
20 asm (TEXT_SECTION_ASM_OP);
23 #define NO_IMPLICIT_EXTERN_C
25 #define LINUX_TARGET_OS_CPP_BUILTINS() \
27 builtin_define ("__gnu_linux__"); \
28 builtin_define_std ("linux"); \
29 builtin_define_std ("unix"); \
30 builtin_assert ("system=linux"); \
31 builtin_assert ("system=unix"); \
32 builtin_assert ("system=posix"); \
35 #define TARGET_OS_CPP_BUILTINS() \
38 LINUX_TARGET_OS_CPP_BUILTINS(); \
41 builtin_define ("__PIC__"); \
42 builtin_define ("__pic__"); \