On 2014-05-30 22:17:42 +0300, Martin Storsjö wrote: > On Fri, 30 May 2014, Janne Grunau wrote: > > >Defining symbols conditionally to '//' does not work with clang's > >integrated assembler. Comments seems to be removed before the symbols > >are substituted. > >--- > >libavutil/aarch64/asm.S | 2 +- > >1 file changed, 1 insertion(+), 1 deletion(-) > > So '#' is also interpreted as comments, but removed at some later > stage? How does this work, when # is used within instructions > themselves? Or does this rely on having the assembler ignore it, > assuming it's leftovers from the preprocessor?
gas manual explicitly states that lines starting with # are treated as comment. I'd guess it's done to allow processing the same file with and without preprocessor. https://sourceware.org/binutils/docs/as/AArch64_002dChars.html#AArch64_002dChars Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
