Index: config/arm/linux-elf.h =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/arm/linux-elf.h,v retrieving revision 1.39 diff -p -r1.39 linux-elf.h *** config/arm/linux-elf.h 18 May 2003 09:46:08 -0000 1.39 --- config/arm/linux-elf.h 14 Jun 2003 17:09:56 -0000 *************** *** 120,124 **** --- 120,129 ---- fprintf (STREAM, "\tbl\tmcount%s\n", NEED_PLT_RELOC ? "(PLT)" : ""); \ } + /* The linux profiler clobbers the link register. Make sure the + prologue knows to save it. */ + #define PROFILE_HOOK(X) \ + emit_insn (gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (SImode, LR_REGNUM))) + #undef CC1_SPEC #define CC1_SPEC "%{profile:-p}"