Regulate GNUism in Zephyr codebase #52226
Labels
area: Portability
Standard compliant code, toolchain abstraction
area: Toolchains
Toolchains
Meta
A collection of features, enhancements or bugs
Preface
Zephyr codebase currently contains many "GNUisms" (GCC-specific constructs) in the assembly and C code because the majority of its developers use the GCC compiler and the upstream CI uses the Zephyr SDK toolchain, which is based on the GCC compiler, to test the submitted patches.
The extensive use of GNUisms throughout the Zephyr codebase creates various portability issues, especially for the proprietary compilers like IAR that strictly adhere to the ISO C standard and do not implement the GNU extensions.
In order to ensure that the Zephyr codebase remains portable and compatible with the compilers other than GCC, it is necessary to set guidelines on the GNU extension usage and regulate them at the project level.
Tasks
Toolchain WG
Resources
The text was updated successfully, but these errors were encountered: