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

Nirav Davé via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 07:57:01 PDT 2016


Ah. So our assembly output is the intersection of preprocessor assembler
and preprocessed assembler, so both gas and system assemblers can be used. The
best we can do is a emit an unindented line-directive-shaped comment that
if "#" is a comment character will be interpreted as such.

-Nirav

On May 25, 2016 4:58 PM, "Joerg Sonnenberger via llvm-commits" <
llvm-commits at lists.llvm.org> wrote:

> On Wed, May 25, 2016 at 12:12:03PM -0400, Nirav Davé wrote:
> > Both clang and GCC expect such directives to have a # prefix for input.
> >
> > 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.
>
> That's kind of my point. We don't create preprocessor assembler (foo.S),
> but
> preprocessed assembler (foo.s). As such, emitting # unconditionally is a
> bug and incompatible with system assemblers on platforms using a
> different comment marker.
>
> Joerg
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160526/3b89e3f8/attachment.html>


More information about the llvm-commits mailing list