[LLVMbugs] [Bug 23872] New: Integrated assembler error message when using .type directive with @ in AArch32 assembly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 17 08:33:20 PDT 2015


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

            Bug ID: 23872
           Summary: Integrated assembler error message when using .type
                    directive with @ in AArch32 assembly
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard.barton at arm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14483
  --> https://llvm.org/bugs/attachment.cgi?id=14483&action=edit
Reproducer

The following assembly (also attached) incorrectly uses @ with the .type
directive. In AArch32 assembler (like GAS) this is a comment symbol, so the
following error is emitted.

clang --target=armv8a-arm-none-eabi -c foo.s
foo.s:4:16: error: expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '@<type>',
'%<type>' or "<type>"
    .type bar, @function
               ^

The error message should not be suggesting '@<type>' as a replacement when
assembling AArch32.

-- 
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/20150617/131c971b/attachment.html>


More information about the llvm-bugs mailing list