aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2018-07-02 10:15:42 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2018-07-02 10:15:42 +0000
commitee24c8e14ec3473b066a460eb8eef38a3fa91e23 (patch)
tree9934003eb3781af5efdc919cf7c4d874c4667ba7
parent5d4e9f7beed5ad5808cabc615b00316bd9dfe92c (diff)
downloadgcc-ee24c8e14ec3473b066a460eb8eef38a3fa91e23.zip
gcc-ee24c8e14ec3473b066a460eb8eef38a3fa91e23.tar.gz
gcc-ee24c8e14ec3473b066a460eb8eef38a3fa91e23.tar.bz2
i386.c (ix86_finalize_stack_frame_flags): Do not overrule -fno-omit-frame-pointer when not optimizing.
* config/i386/i386.c (ix86_finalize_stack_frame_flags): Do not overrule -fno-omit-frame-pointer when not optimizing. From-SVN: r262302
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/i386/i386.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5c1b097..5bf5ce2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
@@ -394,6 +399,8 @@
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
@@ -402,8 +409,6 @@
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>
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index ba23cd0..e6d1763 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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