https://sourceware.org/bugzilla/show_bug.cgi?id=27687

            Bug ID: 27687
           Summary: gas should allow question marks in labels for x86 asm
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: mark at harmstone dot com
  Target Milestone: ---

Created attachment 13344
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13344&action=edit
patch

There doesn't seem to be currently any way to get gas to accept question marks
in labels for x86 assembly. This -

"?label":
        jmp ?label

- fails with "Error: invalid character '?' before operand 1".

The use case for this is MSVC's C++ name mangling, which uses question marks
extensively - there seems to be no way to call MSVC C++ functions from gas.

Attached is a patch which defines LEX_QM in gas/config/tc-i386.h, which seems
to fix the issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to