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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to