[LLVMbugs] [Bug 2825] New: cannot codegen __builtin_va_arg

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Sep 23 03:16:03 PDT 2008


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

           Summary: cannot codegen __builtin_va_arg
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Using clang SVN r56486:

$ clang -emit-llvm-bc -x c -o x.o x.c
x.c:4:28: error: cannot codegen this l-value expression yet
   (void) __builtin_va_arg(ap, void*);
                           ^~
1 diagnostic generated.
$ cat x.c
void foo(void *f, ...) {
    __builtin_va_list ap;
    __builtin_va_start(ap, f);
   (void) __builtin_va_arg(ap, void*);
    __builtin_va_end(ap);
}


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