From 5a6ccb4fd612783beffe889bb8acf150dd1a85c2 Mon Sep 17 00:00:00 2001 From: sayle Date: Thu, 2 Dec 2004 21:19:32 +0000 Subject: [PATCH] PR target/18759 * 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 | 6 ++++++ gcc/config/i386/i386.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2bbcd991100..99b43d371b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-12-02 Roger Sayle + + 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 * varasm.c (make_decl_rtl): Add the missing `;'. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index a3d2f2806d2..1a63fe08873 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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 -- 2.11.4.GIT