[LLVMbugs] [Bug 1781] New: memcpy Defaulted to Alignment 1

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Nov 7 13:02:38 PST 2007


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

           Summary: memcpy Defaulted to Alignment 1
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: isanbard at gmail.com
                CC: llvmbugs at cs.uiuc.edu


To get around a major problem with the FE (4.0) and the alignment of src & dest
pointers to a memcpy, we default the alignment to 1 in all cases. This is a
hack and we should find a real fix for this. Basically, both the src & dest
pointers' alignments need to be taken into account when generating the
alignment for the memcpy; picking the smallest alignment.

See CFrontend/2007-11-07-AlignedMemcpy.c


-- 
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