This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
A kludge for egcs 1.0.3/1.1
- To: egcs-patches at cygnus dot com
- Subject: A kludge for egcs 1.0.3/1.1
- From: hjl at lucon dot org (H.J. Lu)
- Date: Tue, 16 Jun 1998 14:41:55 -0700 (PDT)
Hi,
This kludge seems to work around the -fpic/-fomit-frame-pointer bug
reported earlier.
--
H.J. Lu (hjl@gnu.org)
---
Tue Jun 16 07:32:50 1998 H.J. Lu (hjl@gnu.org)
* config/i386/i386.c (override_options): Disable
-fomit-frame-pointer for PIC.
--- ../../../import/egcs/gcc/config/i386/i386.c Tue May 5 08:50:41 1998
+++ config/i386/i386.c Tue Jun 16 13:43:37 1998
@@ -335,6 +335,12 @@ override_options ()
/* code threaded into the prologue may conflict with profiling */
if (flag_pic || profile_flag || profile_block_flag)
target_flags &= ~MASK_SCHEDULE_PROLOGUE;
+
+ /* pic is not compatible with -fomit-frame-pointer in the current
+ design since function_prologue () changes the stack behind the
+ compiler's back when pic is enabled. */
+ if (flag_pic)
+ flag_omit_frame_pointer = 0;
}
/* A C statement (sans semicolon) to choose the order in which to