From: ebotcazou Date: Thu, 28 Mar 2013 08:30:32 +0000 (+0000) Subject: * toplev.c (process_options): Do not disable -fomit-frame-pointer on a X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=3bcfbe78375cc2175d40fc0f6d104f1bdf7dc95f * toplev.c (process_options): Do not disable -fomit-frame-pointer on a general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS is not enabled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@197188 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 491ec5cce61..4f6fd2b4944 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-03-28 Eric Botcazou + + * toplev.c (process_options): Do not disable -fomit-frame-pointer on a + general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS + is not enabled. + 2013-03-27 Walter Lee Backport from mainline: diff --git a/gcc/toplev.c b/gcc/toplev.c index 6f1da41b761..6bf17368738 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1605,18 +1605,6 @@ process_options (void) if (!flag_stack_protect) warn_stack_protect = 0; - /* ??? Unwind info is not correct around the CFG unless either a frame - pointer is present or A_O_A is set. Fixing this requires rewriting - unwind info generation to be aware of the CFG and propagating states - around edges. */ - if (flag_unwind_tables && !ACCUMULATE_OUTGOING_ARGS - && flag_omit_frame_pointer) - { - warning (0, "unwind tables currently require a frame pointer " - "for correctness"); - flag_omit_frame_pointer = 0; - } - /* Enable -Werror=coverage-mismatch when -Werror and -Wno-error have not been set. */ if (!global_options_set.x_warnings_are_errors