[PATCH] D20337: [MC] Support symbolic expressions in assembly directives

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 07:51:18 PDT 2016


On 25 May 2016 at 10:45, James Y Knight <jyknight at google.com> wrote:
> The .s does have a way to carry the location. GCC emits location lines
> around inline asm, like this:
> #APP
> # 3 "/tmp/test-asm.c" 1
>         cmp %ax, %ax
> # 0 "" 2
> #NO_APP
>
> Clang doesn't do that. Clang emits for the same code:
>         #APP
>         cmpw    %ax, %ax
>         #NO_APP
>
> Emitting location directives that seems like it's really a separate patch,
> IMO.

Agreed. Does gas use that to print warning/errors these days?

Cheers,
Rafael


More information about the llvm-commits mailing list