Commit 2fbe6bc2 by Richard Earnshaw Committed by Richard Earnshaw

re PR target/3724 ([ARM]Illegal instruction when profiling optimized code on arm-linux)

PR target/3724
* arm/linux-elf.h (PROFILE_HOOK): Define.

From-SVN: r67950
parent 75d2580c
2003-06-14 Richard Earnshaw <rearnsha@arm.com>
PR target/3724
* arm/linux-elf.h (PROFILE_HOOK): Define.
2003-06-14 Richard Earnshaw <rearnsha@arm.com>
PR target/11183
* arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
......
......@@ -120,5 +120,10 @@
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}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment