summaryrefslogtreecommitdiff
path: root/gcc/config/arm/linux-elf.h
diff options
context:
space:
mode:
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-11 14:59:09 +0000
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-11 14:59:09 +0000
commit287b01fe21ec546aebe846954b123c5ecabc20c9 (patch)
treefea0f185142e9be19cd5ff9422433358d1c01e43 /gcc/config/arm/linux-elf.h
parent65cf6ae72c1123fdf049b26ad11462f32894ee3b (diff)
downloadgcc-287b01fe21ec546aebe846954b123c5ecabc20c9.tar.gz
* config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
* config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide default definition. (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99581 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/linux-elf.h')
-rw-r--r--gcc/config/arm/linux-elf.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h
index 48b0f016401..b609a813a7c 100644
--- a/gcc/config/arm/linux-elf.h
+++ b/gcc/config/arm/linux-elf.h
@@ -128,11 +128,14 @@
(TARGET_ARM && NEED_PLT_RELOC) ? "(PLT)" : ""); \
}
-/* The linux profiler clobbers the link register. Make sure the
+/* The GNU/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)))
+/* The GNU/Linux profiler needs a frame pointer. */
+#define SUBTARGET_FRAME_POINTER_REQUIRED current_function_profile
+
#undef CC1_SPEC
#define CC1_SPEC "%{profile:-p}"