https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68886
Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amodra at gmail dot com --- Comment #4 from Alan Modra <amodra at gmail dot com> --- Created attachment 37626 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37626&action=edit fix the testcase From the git commit log Function (or more narrow) scope static variables (as well as others not placed on the stack) should also not have any effect on the stack alignment. but that is not exactly what the testcase is testing.. So, make it test just that, by using two functions, identical except for the non-stack var alignment.