From 8f9f5b127d31e31affd8b4dd4b99c8c03ef46b3f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 8 Jul 1999 07:21:01 -0600 Subject: [PATCH] m68k.c (output_function_prologue): Add pic register to mask if live and flag_pic. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit � * m68k.c (output_function_prologue): Add pic register to mask if live and flag_pic. (output_function_epilogue): Likewise. From-SVN: r28023 --- gcc/config/m68k/m68k.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 9d1a37f9abb..0431750b5f1 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -357,6 +357,8 @@ output_function_prologue (stream, size) mask &= ~ (1 << (15 - FRAME_POINTER_REGNUM)); num_saved_regs--; } + if (flag_pic && regs_ever_live[PIC_OFFSET_TABLE_REGNUM]) + mask |= 1 << PIC_OFFSET_TABLE_REGNUM; #if NEED_PROBE #ifdef MOTOROLA @@ -564,6 +566,11 @@ output_function_epilogue (stream, size) nregs++; mask |= 1 << regno; } + if (flag_pic && regs_ever_live[PIC_OFFSET_TABLE_REGNUM]) + { + nregs++; + mask |= 1 << PIC_OFFSET_TABLE_REGNUM; + } offset = foffset + nregs * 4; /* FIXME : leaf_function_p below is too strong. What we really need to know there is if there could be pending -- 2.30.2