[llvm-bugs] [Bug 27369] New: assembler doesn't understand rept with labels as values

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 15 09:17:16 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27369

            Bug ID: 27369
           Summary: assembler doesn't understand rept with labels as
                    values
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: royger at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Hello,

While trying to compile the Xen kernel using clang and the integrated
assembler, I've found that the following assembly snippet doesn't work under
clang integrated as, but it works with gas:

# cat test.S
main:
    .rept 128-(.-main)
    .long 0
    .endr

# clang test.S -c
test.S:2:8: error: unexpected token in '.rept' directive
 .rept 128-(.-main)
       ^
test.S:4:7: error: unmatched '.endr' directive
 .endr
      ^

This is of course a simplification, the original code can be found at:

http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/x86/x86_64/compat/entry.S

Is there anyway to workaround this? (apart from using -no-integrated-as)

Thanks, Roger.

-- 
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/20160415/48c81ab2/attachment.html>


More information about the llvm-bugs mailing list