toplev.c (process_options): Do not disable -fomit-frame-pointer on a general basis...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 28 Mar 2013 08:29:10 +0000 (08:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 28 Mar 2013 08:29:10 +0000 (08:29 +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: r197186

gcc/ChangeLog
gcc/toplev.c

index 3d2c4ea28e6f261b287eb24a2bc588848b2a796b..2dda70c13820af377c47a853eca7507d2d6a14f7 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  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
index ad42391764925d350fc86eb5cbecf321bf22d75d..b85917d109e01f1fa4d44091c6e69c35b5486c7d 100644 (file)
@@ -1527,18 +1527,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;
-    }
-
   /* Address Sanitizer needs porting to each target architecture.  */
   if (flag_asan
       && (targetm.asan_shadow_offset == NULL