Re: [GIT PULL v2] Kbuild updates for v5.15-rc1

From
Florian Weimer <hidden>
Date
2021-09-06 06:54:26
Also in
linux-kbuild, lkml, llvm
* Linus Torvalds:
On Sat, Sep 4, 2021 at 8:19 AM Florian Weimer [off-list ref] wrote:
quoted
In any case, it would be nice to know what the real motivation is.
I don't know about the original motivation, but the reason I like that
patch after-the-fact is that I've actually been in situations where I
test out self-built compilers without installing them.
Does this really simplify matters?  Why wouldn't the gcc compiler driver
find cc1, but not be able to pass the right path options, so that the
include/ subdirectory can be located as well?
Then it's convenient to have a completely standalone kernel tree.
The final patch in the series is here:

  isystem: delete global -isystem compile option
  <https://lore.kernel.org/linux-kernel/YQhY40teUJcTc5H4@localhost.localdomain/ (local)>

It's still not self-contained.  And it seems that there has been quite a
bit of fallout from the removal of <stddef.h>.
Nobody cares about things like <stdatomic.h> They are completely
irrelevant for the kernel, exactly because we've always just done our
own, or used __builtin_xyz() for things.
Apparently, some people care enough about <stdatomic.h> to prevent its
use.  I still have not seen an explanation.  Maybe it's because we
haven't Cc:ed the patch author so far (oops).

Alexey, why are <stdatomic.h> and <float.h> so special that you called
them out in your patch?

If it's about unintended use of libatomic, then maybe we should work on
a proper compiler option that also works for __atomic builtins and the
_Atomic keyword.

Thanks,
Florian
Thread (3 messages) 3 messages, 3 authors, last reply 2021-09-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help