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

            Bug ID: 21695
           Summary: Integrated assembler fails to set the target
                    architecture from .arch
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 13406
  --> http://llvm.org/bugs/attachment.cgi?id=13406&action=edit
Simple test case, build with clang -c -target arm-gnueabi-linux cpu-test.s

The attached test case, when built with "clang -c -target arm-gnueabi-linux
cpu-test.s", fails to assemble with the llvm integrated assembler with the
following error:

cpu-test.s:2:1: error: instruction requires: data-barriers
dsb

We use .arch in the FreeBSD kernel to build assembly code that will target a
known architecture however it may not have -march argument set causing the
build to fail.

In binutils the .arch directive sets the current target architecture, it can
then be changed later to a new architecture if needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to