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 5c1b097..5bf5ce2 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 ba23cd0..e6d1763 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