https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90062
Bug ID: 90062 Summary: SPARC stack alignment is wrong Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ro at gcc dot gnu.org Target Milestone: --- Target: sparc*-*-* Created attachment 46151 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46151&action=edit Correct SPARC stack alignment Even after the ucontext_t and makecontext patches, Solaris/SPARC execution tests were still FAILing (seem to have lost the notes about the details ;-(). However, I found that stack alignment was less than the SPARC ABI requires, i.e. doubleword alignment (also cf. sparc/sparc.h (SPARC_STACK_ALIGN)). The attached patch fixes that. However, I've been lazy and always use the existing 16-byte alignment code, although strictly speaking 32-bit SPARC only needs 8 bytes.