[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


            Bug ID: 27369
           Summary: assembler doesn't understand rept with labels as
           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


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
    .rept 128-(.-main)
    .long 0

# 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

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


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