Re: [RFC PATCH] pre-process: add __VA_OPT__ support

Linus Torvalds <[email protected]> Wed, 1 Apr 2026 09:18:34 -0700
Newsgroups org.kernel.vger.linux-sparse
Message-ID <CAHk-=whC+8jX=t9NsF3uG_=BoLDNG7q0+FCm4ZrQDFdirWaasA@mail.gmail.com>
On Wed, 1 Apr 2026 at 03:35, Al Viro <[email protected]> wrote:
>
> Sigh...  whitespace handling (6/6) had been too convoluted and ended
> up with breakage due to a missed case.

I'm impressed that you are trying to get this right, even though
clearly nobody really will ever be able to depend on it.

I suspect this part of the patch is more likely to actually be
something that somebody may actually want some day:

  +// We ought to add __builtin_strcmp() support to constant expressions;
  +// what's more, "foo"[0] should also be recognized as one...
  +// Sloppy length check for now...

because yeah, we've actually depended on the compiler just figuring
some of those kinds of build-time optimizations out before to remove
dead code etc.

            Linus