[LLVMbugs] [Bug 21695] New: Integrated assembler fails to set the target architecture from .arch

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 30 04:08:39 PST 2014


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: unassignedbugs at nondot.org
          Reporter: andrew at fubar.geek.nz
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141130/e62cb1dc/attachment.html>


More information about the llvm-bugs mailing list