[PATCH] MC: provide the ability to disable assembly parsing

Joerg Sonnenberger joerg at britannica.bec.de
Thu Feb 20 06:06:49 PST 2014

On Thu, Feb 20, 2014 at 01:52:45PM +0000, Daniel Sanders wrote:
> The GCC mailing list has a more complete explanation at
> http://gcc.gnu.org/ml/gcc/2014-02/msg00342.html but it doesn't mention
> that __NR_PAGEFLAGS from the first block of code is an enum value in
> the kernel source. From what I've seen so far, Linux is essentially
> using inline assembly and sed as a way to feed enum values into
> conditional compilation directives.

Sounds exactly like what genassym in NetBSD is doing with the difference
that it creates invalid assembler.


More information about the cfe-commits mailing list