https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70232
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-03-16
CC| |ramana at gcc dot gnu.org
Summary|excessive stack usage with |[6 regression] excessive
|-O2 |stack usage with -O2
Ever confirmed|0 |1
--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> >I have only tested on 32-bit ARM,
>
> Looks only to be an 32bit ARM issue. AARCH64 both LP64 and ILP32 does not
> have a stack size issue.
> For both of those we get:
> stp x29, x30, [sp, -128]!
>
> So only 128 bytes.
Confirmed .
GCC 5 uses about 136 bytes
GCC 6 uses 1160 bytes at O2 for the reduced testcase.