2 #define CPP_PREDEFINES "-Dsparc -Dsun -Dunix -Asystem=unix -Asystem=bsd"
4 /* Override the name of the mcount profiling function. */
7 #define MCOUNT_FUNCTION "*.mcount"
9 /* LINK_SPEC is needed only for SunOS 4. */
13 /* Override MACHINE_STATE_{SAVE,RESTORE} because we have special
14 traps available which can get and set the condition codes
16 #undef MACHINE_STATE_SAVE
17 #define MACHINE_STATE_SAVE(ID) \
18 unsigned long int ms_flags, ms_saveret; \
19 asm volatile("ta 0x20\n\t" \
22 : "=r" (ms_flags), "=r" (ms_saveret));
24 #undef MACHINE_STATE_RESTORE
25 #define MACHINE_STATE_RESTORE(ID) \
26 asm volatile("mov %0, %%g1\n\t" \
30 : "r" (ms_flags), "r" (ms_saveret));