]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
toplev.c (process_options): Do not disable -fomit-frame-pointer on a general basis...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 28 Mar 2013 08:30:32 +0000 (08:30 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 28 Mar 2013 08:30:32 +0000 (08:30 +0000)
* 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.

From-SVN: r197188

gcc/ChangeLog
gcc/toplev.c

index 491ec5cce618bd97efd87203e180a354861d7e15..4f6fd2b49442f11fc4044eb853c8eb752998441d 100644 (file)
@@ -1,3 +1,9 @@
+2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * 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  <walt@tilera.com>
 
        Backport from mainline:
index 6f1da41b7611f7e1578aaa7a07e83cb5fa7d3341..6bf17368738ab379bbcb262213049a2f434f0646 100644 (file)
@@ -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