[LLVMbugs] [Bug 9818] New: clang -integrated-as: doesn't support .subsection

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 30 00:42:50 PDT 2011


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

           Summary: clang -integrated-as: doesn't support .subsection
           Product: new-bugs
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
void foo ()
{
    asm ("jb 8f\n\t"
#ifdef __ELF__
         ".subsection 2\n\t"
#else
         "jmp 7f\n\t"
#endif
         ".p2align 2\n"
         /* some SSE code */
#ifdef __ELF__
         ".previous\n\t"
#else
         "7:\n\t"
#endif
         "8:\n\t"
        );
}

$ clang x.c
x.c:3:18: error: warning: ignoring directive for now
    asm ("jb 8f\n\t"
                 ^
<inline asm>:2:2: note: instantiated into assembly here                         
        .subsection 2
        ^
1 error generated.

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