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]

Document -momit-leaf-frame-pointer for i386



The following patch passed make info and documents the
-momit-leaf-frame-pointer option that is so far completly
undocumented.

Ok to commit for both branches?
Andreas

2001-05-05  Andreas Jaeger  <aj@suse.de>

	* invoke.texi (Option Summary): Add -momit-leaf-frame-pointer
	(i386 Options): Document -momit-leaf-frame-pointer.

============================================================
Index: gcc/invoke.texi
--- gcc/invoke.texi	2001/05/04 06:31:23	1.298
+++ gcc/invoke.texi	2001/05/05 18:22:10
@@ -473,7 +473,7 @@
 -mpreferred-stack-boundary=@var{num} @gol
 -mthreads -mno-align-stringops -minline-all-stringops @gol
 -mpush-args -maccumulate-outgoing-args -m128bit-long-double @gol
--m96bit-long-double -mregparm=@var{num}}
+-m96bit-long-double -mregparm=@var{num} -momit-leaf-frame-pointer} 
 
 @emph{HPPA Options}
 @gccoptlist{
@@ -6924,6 +6924,15 @@
 aligned at least to 4 byte boundary. This enables more inlining, increase code
 size, but may improve performance of code that depends on fast memcpy, strlen
 and memset for short lengths.
+
+@item -momit-leaf-frame-pointer
+@kindex -momit-leaf-frame-pointer
+Don't keep the frame pointer in a register for leaf functions.  This
+avoids the instructions to save, set up and restore frame pointers and
+makes an extra register available in leaf functions.  The option
+@samp{-fomit-frame-pointer} removes the frame pointer for all functions
+which might makes debugging harder.  This option only removes it for
+leaf functions and is in general safe to use.
 @end table
 
 @node HPPA Options


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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