[Bug target/32000] New: struct-layout-1.exp fails at -O2

rsandifo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 19 08:41:00 GMT 2007


Running struct-layout-1.exp with CFLAGS_FOR_TARGET=-O2 produces:

FAIL: tmpdir-gcc.dg-struct-layout-1/t022 c_compat_x_tst.o-c_compat_y_tst.o
execute
FAIL: tmpdir-gcc.dg-struct-layout-1/t023 c_compat_x_tst.o-c_compat_y_tst.o
execute
FAIL: tmpdir-gcc.dg-struct-layout-1/t024 c_compat_x_tst.o-c_compat_y_tst.o
execute
FAIL: tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o
execute
FAIL: tmpdir-gcc.dg-struct-layout-1/t028 c_compat_x_tst.o-c_compat_y_tst.o
execute

I think the problem is with 128-bit packed quantities being passed
at unaligned addresses on the stack, but still being accessed using
aligned SSE operations.  A simple reduced testcase is attached;
it passes with -O0 and fails with -O and -O2.


-- 
           Summary: struct-layout-1.exp fails at -O2
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rsandifo at gcc dot gnu dot org
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32000



More information about the Gcc-bugs mailing list