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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to