From: H.J. Lu Date: Sun, 16 Dec 2018 13:55:18 +0000 (+0000) Subject: x86: Revert reversion 267133 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57bfedaffecab6bef69de309fcf9516b78015de1;p=gcc.git x86: Revert reversion 267133 Revert commit: commit 76c21b271247ccbd681bdb4530426d2fe35dbfa5 Author: hjl 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eda1061497b..2b957549157 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-12-15 H.J. Lu + + PR target/88483 + * config/i386/i386.c (ix86_finalize_stack_frame_flags): Revert + reversion 267133. + 2018-12-15 Jan Hubicka * ipa-fnsummary.c (analyze_function_body): Do not loeak conds and diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index b6dea0c061d..4ba23618afe 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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) { diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 597ba50c867..d7ca87718ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-12-15 H.J. Lu + + PR target/88483 + * gcc.target/i386/stackalign/pr88483.c: Removed. Revert + reversion 267133. + 2018-12-15 Steven G. Kargl 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 index 5aec8fd4cf6..00000000000 --- a/gcc/testsuite/gcc.target/i386/stackalign/pr88483.c +++ /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" } } */