[LLVMbugs] [Bug 14099] New: structure pass byval causes data corruption

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 16 13:08:39 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14099

             Bug #: 14099
           Summary: structure pass byval causes data corruption
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: compnerd at compnerd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9359
  --> http://llvm.org/bugs/attachment.cgi?id=9359
test_StructByVal.c

It seems that passing a structure by value on ARM gets miscompiled resulting in
the value being offset by 4 bytes.

The attached test case seems to show the issue (the expected output is a series
of 0xaa, instead you get 4 bytes of garbage at the beginning).

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list