This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A kludge for egcs 1.0.3/1.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]