i386.c (ix86_finalize_stack_frame_flags): Do not overrule -fno-omit-frame-pointer...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 2 Jul 2018 10:15:42 +0000 (10:15 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 2 Jul 2018 10:15:42 +0000 (10:15 +0000)
* config/i386/i386.c (ix86_finalize_stack_frame_flags): Do not overrule
-fno-omit-frame-pointer when not optimizing.

From-SVN: r262302

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

index 5c1b097c2af3a63b753908e9c4bc19d5e134c3e6..5bf5ce244a5e6529fcddf0140f0a6a25bb2812d4 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-02  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/i386/i386.c (ix86_finalize_stack_frame_flags): Do not overrule
+       -fno-omit-frame-pointer when not optimizing.
+
 2018-07-02  Martin Liska  <mliska@suse.cz>
 
         PR ipa/86279
 
 2018-06-28  Eric Botcazou  <ebotcazou@adacore.com>
 
+       * tree-inline.h (struct copy_body_data): Move remapping_type_depth and
+       prevent_decl_creation_for_types fields up and add reset_location field.
        * tree-inline.c (remap_gimple_stmt): Force input_location on the new
        statement if id->reset_location is true.
        (copy_edges_for_bb): Do not set goto_locus on the new edges if
        id->reset_location is true.
        (expand_call_inline): Set id->reset_location if DECL_IGNORED_P
        is set on the function to be inlined.
-       * tree-inline.h (struct copy_body_data): Move remapping_type_depth and
-       prevent_decl_creation_for_types fields up and add reset_location field.
 
 2018-06-27  Stephan Bergmann  <sbergman@redhat.com>
 
index ba23cd0a1abc47cd7396003ecda11dd1783df233..e6d17632142fb4d07d56700e2283ab23f224fa7e 100644 (file)
@@ -13145,7 +13145,7 @@ ix86_finalize_stack_frame_flags (void)
      is used, but in the end nothing that needed the stack alignment had
      been spilled nor stack access, clear frame_pointer_needed and say we
      don't need stack realignment.  */
-  if ((stack_realign || !flag_omit_frame_pointer)
+  if ((stack_realign || (!flag_omit_frame_pointer && optimize))
       && frame_pointer_needed
       && crtl->is_leaf
       && crtl->sp_is_unchanging