From b3a821e85ea1b15274b731efe7d4d22158c5c27e Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 25 Jul 2004 13:33:57 +0000 Subject: Always build a stack frame when profiling. Otherwise profiling would only work for code compiled at -O0... --- gnu/egcs/gcc/config/m88k/m88k.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu') 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 -- cgit v1.2.3