[LLVMbugs] [Bug 3257] New: llvm-gcc rejects "+g" constraint

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Dec 22 17:53:42 PST 2008


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

           Summary: llvm-gcc rejects "+g" constraint
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:

void x()
{
    int a;
    __asm__ volatile(
        ""
        :"+g"(a));
}

Compiled with llvm-gcc on x86, gives the following error:
<stdin>:4: error: Unsupported inline asm: input constraint with a matching
output constraint of incompatible type!

(Testcase reduced from ffmpeg.)


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