m68k pic bug
Andreas Schwab
schwab@suse.de
Mon Oct 18 04:40:00 GMT 1999
Mon Oct 18 13:43:04 1999 Andreas Schwab <schwab@suse.de>
* config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
if the pic register is used.
Index: gcc/config/m68k/m68k.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/m68k/m68k.h,v
retrieving revision 1.37
diff -u -a -u -r1.37 gcc/config/m68k/m68k.h
--- gcc/config/m68k/m68k.h 1999/08/02 23:19:27 1.37
+++ gcc/config/m68k/m68k.h 1999/10/18 11:37:57
@@ -1242,6 +1242,8 @@
for (regno = 0; regno < 16; regno++) \
if (regs_ever_live[regno] && ! call_used_regs[regno]) \
offset += 4; \
+ if (flag_pic && current_function_uses_pic_offset_table) \
+ offset += 4; \
(DEPTH) = (offset + ((get_frame_size () + 3) & -4) \
+ (get_frame_size () == 0 ? 0 : 4)); \
}
--
Andreas Schwab "And now for something
SuSE Labs completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
More information about the Gcc-patches
mailing list