r180976 - Move parsing of identifiers in MS-style inline assembly into

Hans Wennborg hans at chromium.org
Tue May 14 08:25:15 PDT 2013


Hi John,

On Fri, May 3, 2013 at 1:10 AM, John McCall <rjmccall at apple.com> wrote:
> Author: rjmccall
> Date: Thu May  2 19:10:13 2013
> New Revision: 180976
>
> URL: http://llvm.org/viewvc/llvm-project?rev=180976&view=rev
> Log:
> Move parsing of identifiers in MS-style inline assembly into
> the actual parser and support arbitrary id-expressions.

This seems to have broken the ability to use labels inside MS-style
inline assembly. For example, the following no longer compiles:

  void foo() {
    __asm {
  a:
      jmp a
    }
  }

because Clang now errors out when it fails to look up the identifier "a".

Do you have any ideas for a good way to handle this?

Thanks,
Hans



More information about the cfe-commits mailing list