PR target/18759
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2004 21:19:32 +0000 (21:19 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2004 21:19:32 +0000 (21:19 +0000)
* config/i386/i386.c (override_options): If -fomit-frame-pointer has
already been specified, ignore the -momit-leaf-frame-pointer option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91662 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index 2bbcd99..99b43d3 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-02  Roger Sayle  <roger@eyesopen.com>
+
+       PR target/18759
+       * config/i386/i386.c (override_options): If -fomit-frame-pointer has
+       already been specified, ignore the -momit-leaf-frame-pointer option.
+
 2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        * varasm.c (make_decl_rtl): Add the missing `;'.
index a3d2f28..1a63fe0 100644 (file)
@@ -1466,7 +1466,9 @@ override_options (void)
     }
 
   /* Keep nonleaf frame pointers.  */
-  if (TARGET_OMIT_LEAF_FRAME_POINTER)
+  if (flag_omit_frame_pointer)
+    target_flags &= ~MASK_OMIT_LEAF_FRAME_POINTER;
+  else if (TARGET_OMIT_LEAF_FRAME_POINTER)
     flag_omit_frame_pointer = 1;
 
   /* If we're doing fast math, we don't care about comparison order