linux/Documentation/translations/it_IT/process
Arnd Bergmann e8c07082a8 Kbuild: move to -std=gnu11
During a patch discussion, Linus brought up the option of changing
the C standard version from gnu89 to gnu99, which allows using variable
declaration inside of a for() loop. While the C99, C11 and later standards
introduce many other features, most of these are already available in
gnu89 as GNU extensions as well.

An earlier attempt to do this when gcc-5 started defaulting to
-std=gnu11 failed because at the time that caused warnings about
designated initializers with older compilers. Now that gcc-5.1 is
the minimum compiler version used for building kernels, that is no
longer a concern. Similarly, the behavior of 'inline' functions changes
between gnu89 using gnu_inline behavior and gnu11 using standard c99+
behavior, but this was taken care of by defining 'inline' to include
__attribute__((gnu_inline)) in order to allow building with clang a
while ago.

Nathan Chancellor reported a new -Wdeclaration-after-statement
warning that appears in a system header on arm, this still needs a
workaround.

The differences between gnu99, gnu11, gnu1x and gnu17 are fairly
minimal and mainly impact warnings at the -Wpedantic level that the
kernel never enables. Between these, gnu11 is the newest version
that is supported by all supported compiler versions, though it is
only the default on gcc-5, while all other supported versions of
gcc or clang default to gnu1x/gnu17.

Link: https://lore.kernel.org/lkml/CAHk-=wiyCH7xeHcmiFJ-YgXUy2Jaj7pnkdKpcovt8fYbVFW3TA@mail.gmail.com/
Link: https://github.com/ClangBuiltLinux/linux/issues/1603
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Marco Elver <elver@google.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: David Sterba <dsterba@suse.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: Alex Shi <alexs@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2022-03-13 17:31:37 +09:00
..
1.Intro.rst
2.Process.rst doc:it_IT: align Italian documentation 2020-11-18 13:49:21 -07:00
3.Early-stage.rst
4.Coding.rst doc:it_IT: align Italian documentation 2021-04-13 15:08:55 -06:00
5.Posting.rst
6.Followthrough.rst
7.AdvancedTopics.rst
8.Conclusion.rst
adding-syscalls.rst doc:it_IT: align Italian documentation 2021-04-13 15:08:55 -06:00
applying-patches.rst
changes.rst docs: Update Sphinx requirements 2021-11-15 02:47:22 -07:00
clang-format.rst
code-of-conduct.rst
coding-style.rst docs: Use fallthrough pseudo-keyword 2021-05-20 14:06:52 -06:00
deprecated.rst doc: align Italian translation 2021-08-12 08:55:26 -06:00
development-process.rst
email-clients.rst doc:it_IT: align Italian documentation 2020-11-18 13:49:21 -07:00
howto.rst doc:it_IT: align Italian documentation 2021-04-13 15:08:55 -06:00
index.rst doc:it_IT: add RISC-V maintenance guidelines 2020-04-21 13:36:00 -06:00
kernel-docs.rst doc:it_IT: translations in process/ 2019-07-22 14:47:02 -06:00
kernel-driver-statement.rst
kernel-enforcement-statement.rst
license-rules.rst docs: it: license-rules.rst: get rid of warnings 2019-06-08 13:42:11 -06:00
magic-number.rst It's been a relatively busy cycle in docsland, though more than usually 2021-04-26 13:22:43 -07:00
maintainer-pgp-guide.rst docs: it_IT: maintainer-pgp-guide: Fix reference to "Nitrokey Pro 2" 2019-10-03 10:18:57 -06:00
management-style.rst docs: it_IT: address invalid reference warnings 2020-06-08 09:25:27 -06:00
programming-language.rst Kbuild: move to -std=gnu11 2022-03-13 17:31:37 +09:00
stable-api-nonsense.rst
stable-kernel-rules.rst doc: align Italian translation 2021-08-12 08:55:26 -06:00
submit-checklist.rst doc:it_IT: align Italian documentation 2021-04-13 15:08:55 -06:00
submitting-drivers.rst
submitting-patches.rst Documentation: remove trivial tree 2022-01-10 10:24:29 +01:00
volatile-considered-harmful.rst