<div dir="ltr"><p>Ah. So our assembly output is the intersection of <span style="font-size:12.8px">preprocessor assembler and </span><span style="font-size:12.8px">preprocessed assembler, so both gas and system assemblers can be used. T</span><span style="font-size:12.8px">he best we can do is a </span>emit an unindented line-directive-shaped comment that if "#" is a comment character will be interpreted as such. </p><p>-Nirav<br></p><p>On May 25, 2016 4:58 PM, "Joerg Sonnenberger via llvm-commits" <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></p><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Wed, May 25, 2016 at 12:12:03PM -0400, Nirav Davé wrote:<br>
> Both clang and GCC expect such directives to have a # prefix for input.<br>
><br>
> That said, GCC isn't not consistent for output. For instance, my version of<br>
> arm-linux-gnueabi-gcc emits this directive with the line comment prefix '@'<br>
> (but still emits #APP for inline assembly) which the correspodning gas<br>
> interprets as a line comment and not a line directive.<br>
<br>
That's kind of my point. We don't create preprocessor assembler (foo.S), but<br>
preprocessed assembler (foo.s). As such, emitting # unconditionally is a<br>
bug and incompatible with system assemblers on platforms using a<br>
different comment marker.<br>
<br>
Joerg<br>
_______________________________________________<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">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>
</div>