zephyr/cmake/compiler
Andy Ross 728230a241 cmake/compiler: Limit warning flag usage to compatible toolchains
New C++ versions have deprecated "register" variables and restricted
"volatile" semantics, so new gcc's will emit warnings when they see
that syntax.  Zephyr uses both in our C headers (though we should
probably get rid of register and unify with C++'s volatile model), so
we're disabling the resulting warnings.

But OLD gcc variants (like xcc, sigh) don't understand new -Wvolatile
and -Wregister on the command line, so they get confused.  Limit the
uses to the standard versions for which gcc would emit warnigns; xcc
doesn't support those anyway.

Signed-off-by: Andy Ross <andyross@google.com>
2023-03-01 19:42:32 -05:00
..
arcmwdt toolchain: Move extra warning options to toolchain abstraction 2023-02-19 20:34:13 -05:00
armclang armclang: Add version check for armclang toolchain 2023-02-28 13:54:56 +01:00
clang compiler/clang: ignore main-return-type warning for clang 2023-02-20 09:50:59 +01:00
gcc cmake/compiler: Limit warning flag usage to compatible toolchains 2023-03-01 19:42:32 -05:00
host-gcc cmake: provide a useful error msg when native compiler is missing 2023-02-09 22:10:16 +09:00
icx
xcc treewide: Use CONFIG_CPP instead of CONFIG_CPLUSPLUS 2023-01-13 17:42:55 -05:00
xt-clang toolchain: rename xcc-clang to xt-clang 2023-02-22 08:35:46 -05:00
compiler_features.cmake cmake: CMake compile features support 2021-10-01 14:40:33 -04:00
compiler_flags_template.cmake toolchain: Move extra warning options to toolchain abstraction 2023-02-19 20:34:13 -05:00