https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102836

            Bug ID: 102836
           Summary: gcc.target/i386/pieces-memset-1.c etc. FAIL
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: i?86-pc-solaris2.11, x86_64-pc-solaris2.11

Some gcc.target/i386/pieces-memset-*.c tests have been FAILing on 32-bit
Solaris/x86
since they were installed:

FAIL: gcc.target/i386/pieces-memset-1.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-4.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-41.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-7.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-8.c scan-assembler-not %[re]bp

It turns out that this happens because 32-bit Solaris/x86 only guarantees
4-byte stack alignment following the i386 psABI, so defaults to -mstackrealign.

Adding -mno-stackrealign to one test lets the output match what I get on
Linux/x86.  I suspect that's the best option?

Reply via email to