summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-25 13:33:57 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-25 13:33:57 +0000
commitb3a821e85ea1b15274b731efe7d4d22158c5c27e (patch)
tree2a45c5b8ccc131bcc83b6640f7aaa0750a3bcc97 /gnu
parentead03158d62069fffd6b6a674b02c25c7b61708a (diff)
Always build a stack frame when profiling. Otherwise profiling would only
work for code compiled at -O0...
Diffstat (limited to 'gnu')
-rw-r--r--gnu/egcs/gcc/config/m88k/m88k.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/egcs/gcc/config/m88k/m88k.c b/gnu/egcs/gcc/config/m88k/m88k.c
index af0a5af8c8a..e8f6f66b607 100644
--- a/gnu/egcs/gcc/config/m88k/m88k.c
+++ b/gnu/egcs/gcc/config/m88k/m88k.c
@@ -1777,9 +1777,9 @@ m88k_layout_frame ()
sp_size = nregs = nxregs = 0;
frame_size = get_frame_size ();
- /* Since profiling requires a call, make sure r1 is saved. */
+ /* Profiling requires a stack frame. */
if (profile_flag || profile_block_flag)
- save_regs[1] = 1;
+ frame_pointer_needed = 1;
/* If we are producing debug information, store r1 and r30 where the
debugger wants to find them (r30 at r30+0, r1 at r30+4). Space has