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: unassignedclangb...@nondot.org Reporter: roy...@freebsd.org CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs