[LLVMbugs] [Bug 15286] New: VACOPY intrinsic misbehaves on PPC32

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 16 03:31:17 PST 2013


            Bug ID: 15286
           Summary: VACOPY intrinsic misbehaves on PPC32
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: florob at babelmonkeys.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Using va_copy on ppc32 with the SVR4 ABI currently causes strange behaviour
when using the copied list.

It appears the reason is that ppc32 needs custom lowering here.
While the default implementation only copies the pointer to the va_list struct
for ppc32 the actual struct needs to be copied (va_arg changes the struct).

I've fixed this in my local copy by stealing the AArch64 code and adapting it
to copy only 12 bytes.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130216/a0ac0823/attachment.html>

More information about the llvm-bugs mailing list