* [PATCH] docs: reflect equal support for gcc and clang @ 2026-02-24 3:09 Ariful Islam Shoikot 2026-02-24 4:59 ` Al Viro 0 siblings, 1 reply; 3+ messages in thread From: Ariful Islam Shoikot @ 2026-02-24 3:09 UTC (permalink / raw) To: linux-kernel, linux-doc; +Cc: Ariful Islam Shoikot Update the programming language documentation to reflect that both gcc and clang are fully supported compilers. Signed-off-by: Ariful Islam Shoikot <islamarifulshoikat@gmail.com> --- Documentation/process/programming-language.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/process/programming-language.rst b/Documentation/process/programming-language.rst index c18e307ccb56..491138ae17cb 100644 --- a/Documentation/process/programming-language.rst +++ b/Documentation/process/programming-language.rst @@ -4,10 +4,11 @@ Programming Language ==================== The Linux kernel is written in the C programming language [c-language]_. -More precisely, it is typically compiled with ``gcc`` [gcc]_ -under ``-std=gnu11`` [gcc-c-dialect-options]_: the GNU dialect of ISO C11. -``clang`` [clang]_ is also supported; see documentation on -:ref:`Building Linux with Clang/LLVM <kbuild_llvm>`. +More precisely, it is compiled with either ``gcc`` [gcc]_ or +``clang`` [clang]_, both of which are fully supported, using +``-std=gnu11`` [gcc-c-dialect-options]_: +the GNU dialect of ISO C11. See +:ref:`Building Linux with Clang/LLVM <kbuild_llvm>` for additional details. This dialect contains many extensions to the language [gnu-extensions]_, and many of them are used within the kernel as a matter of course. -- 2.43.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] docs: reflect equal support for gcc and clang 2026-02-24 3:09 [PATCH] docs: reflect equal support for gcc and clang Ariful Islam Shoikot @ 2026-02-24 4:59 ` Al Viro 2026-02-24 7:52 ` [PATCH v2] docs: clarify gcc and clang support wording Ariful Islam Shoikot 0 siblings, 1 reply; 3+ messages in thread From: Al Viro @ 2026-02-24 4:59 UTC (permalink / raw) To: Ariful Islam Shoikot; +Cc: linux-kernel, linux-doc On Tue, Feb 24, 2026 at 09:09:06AM +0600, Ariful Islam Shoikot wrote: > Update the programming language documentation to reflect that both > gcc and clang are fully supported compilers. > > Signed-off-by: Ariful Islam Shoikot <islamarifulshoikat@gmail.com> > --- > Documentation/process/programming-language.rst | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/Documentation/process/programming-language.rst b/Documentation/process/programming-language.rst > index c18e307ccb56..491138ae17cb 100644 > --- a/Documentation/process/programming-language.rst > +++ b/Documentation/process/programming-language.rst > @@ -4,10 +4,11 @@ Programming Language > ==================== > > The Linux kernel is written in the C programming language [c-language]_. > -More precisely, it is typically compiled with ``gcc`` [gcc]_ > -under ``-std=gnu11`` [gcc-c-dialect-options]_: the GNU dialect of ISO C11. > -``clang`` [clang]_ is also supported; see documentation on > -:ref:`Building Linux with Clang/LLVM <kbuild_llvm>`. > +More precisely, it is compiled with either ``gcc`` [gcc]_ or > +``clang`` [clang]_, both of which are fully supported, using "Fully" is a bit of stretch. Realistically, if you have x86, arm/arm64, riscv or s390, it should work. Beyond that... Quite a few architectures are in the "hopefully the resulting kernel will work" state (ppc, mips) and it runs all the way through "if you are lucky, it builds" (sparc64, IIRC), some requiring a fork of clang (openrisc, for example), to "you are SOL, this target doesn't have even an attempted out-of-tree support" (alpha and parisc, at least). ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] docs: clarify gcc and clang support wording 2026-02-24 4:59 ` Al Viro @ 2026-02-24 7:52 ` Ariful Islam Shoikot 0 siblings, 0 replies; 3+ messages in thread From: Ariful Islam Shoikot @ 2026-02-24 7:52 UTC (permalink / raw) To: linux-kernel; +Cc: linux-doc, viro, Ariful Islam Shoikot Avoid stating that both are "fully supported" due to variance between architecture. Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Ariful Islam Shoikot <islamarifulshoikat@gmail.com> --- Documentation/process/programming-language.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/process/programming-language.rst b/Documentation/process/programming-language.rst index c18e307ccb56..25ec1c99e2ae 100644 --- a/Documentation/process/programming-language.rst +++ b/Documentation/process/programming-language.rst @@ -4,10 +4,11 @@ Programming Language ==================== The Linux kernel is written in the C programming language [c-language]_. -More precisely, it is typically compiled with ``gcc`` [gcc]_ -under ``-std=gnu11`` [gcc-c-dialect-options]_: the GNU dialect of ISO C11. -``clang`` [clang]_ is also supported; see documentation on -:ref:`Building Linux with Clang/LLVM <kbuild_llvm>`. +More precisely, it is compiled with either ``gcc`` [gcc]_ or +``clang`` [clang]_, both of which are supported, using +``-std=gnu11`` [gcc-c-dialect-options]_: +the GNU dialect of ISO C11. See +:ref:`Building Linux with Clang/LLVM <kbuild_llvm>` for additional details. This dialect contains many extensions to the language [gnu-extensions]_, and many of them are used within the kernel as a matter of course. -- 2.43.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-24 7:53 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-02-24 3:09 [PATCH] docs: reflect equal support for gcc and clang Ariful Islam Shoikot 2026-02-24 4:59 ` Al Viro 2026-02-24 7:52 ` [PATCH v2] docs: clarify gcc and clang support wording Ariful Islam Shoikot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox