x86: Revert reversion 267133
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 16 Dec 2018 13:55:18 +0000 (13:55 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 16 Dec 2018 13:55:18 +0000 (05:55 -0800)
Revert commit:

commit 76c21b271247ccbd681bdb4530426d2fe35dbfa5
Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Dec 14 12:38:04 2018 +0000

    x86: Don't use get_frame_size when finalizing stack frame

gcc/

PR target/88483
* config/i386/i386.c (ix86_finalize_stack_frame_flags): Revert
reversion 267133.

gcc/testsuite/

PR target/88483
* gcc.target/i386/stackalign/pr88483.c: Removed.  Revert
reversion 267133.

From-SVN: r267186

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/stackalign/pr88483.c [deleted file]

index eda1061497bdb5b76c7b2089fdc968096a5a6ebf..2b957549157e1eba4c63c4eab8b727a56353ed39 100644 (file)
@@ -1,3 +1,9 @@
+2018-12-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/88483
+       * config/i386/i386.c (ix86_finalize_stack_frame_flags): Revert
+       reversion 267133.
+
 2018-12-15  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-fnsummary.c (analyze_function_body): Do not loeak conds and
index b6dea0c061d7e196127b365d8718028061507b3f..4ba23618afe292616191cca26b3fcfb790388f7b 100644 (file)
@@ -12879,6 +12879,7 @@ ix86_finalize_stack_frame_flags (void)
           && flag_exceptions
           && cfun->can_throw_non_call_exceptions)
       && !ix86_frame_pointer_required ()
+      && get_frame_size () == 0
       && ix86_nsaved_sseregs () == 0
       && ix86_varargs_gpr_size + ix86_varargs_fpr_size == 0)
     {
index 597ba50c867a22a71ee197ab2a1528efdeb04b37..d7ca87718ef48448c8dc634d076bfc0a7cd4372f 100644 (file)
@@ -1,3 +1,9 @@
+2018-12-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/88483
+       * gcc.target/i386/stackalign/pr88483.c: Removed.  Revert
+       reversion 267133.
+
 2018-12-15  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/87944
diff --git a/gcc/testsuite/gcc.target/i386/stackalign/pr88483.c b/gcc/testsuite/gcc.target/i386/stackalign/pr88483.c
deleted file mode 100644 (file)
index 5aec8fd..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
-/* { dg-options "-O2 -mavx2" } */
-
-struct B
-{
-  char a[12];
-  int b;
-};
-
-struct B
-f2 (void)
-{
-  struct B x = {};
-  return x;
-}
-
-/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-\[0-9\]+,\[^\\n\]*sp" } } */