<div dir="ltr"><div>Both clang and GCC expect such directives to have a # prefix for input. </div><div><br></div><div>That said, GCC isn't not consistent for output. For instance, my version of arm-linux-gnueabi-gcc emits this directive with the line comment prefix '@' (but still emits #APP for inline assembly) which the correspodning gas interprets as a line comment and not a line directive.</div><div><br></div><div>-Nirav</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 11:36 AM, Joerg Sonnenberger via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, May 25, 2016 at 10:45:00AM -0400, James Y Knight via llvm-commits wrote:<br>
> The .s does have a way to carry the location. GCC emits location lines<br>
> around inline asm, like this:<br>
> #APP<br>
> # 3 "/tmp/test-asm.c" 1<br>
>         cmp %ax, %ax<br>
> # 0 "" 2<br>
> #NO_APP<br>
><br>
> Clang doesn't do that. Clang emits for the same code:<br>
>         #APP<br>
>         cmpw    %ax, %ax<br>
>         #NO_APP<br>
<br>
</span>What do we use on architectures where # is not a comment marker?<br>
<br>
Joerg<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>