zephyr/cmake/compiler/gcc
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
..
compiler_flags.cmake cmake/compiler: Limit warning flag usage to compatible toolchains 2023-03-01 19:42:32 -05:00
generic.cmake cmake: Populate var CMAKE_GCOV 2021-09-02 19:44:00 -04:00
target.cmake cmake: sparse: deprecate old sparse support 2023-01-27 20:28:58 +09:00
target_arc.cmake arch/arc: Add -mcpu flag to TOOLCHAIN_LD_FLAGS 2022-10-25 10:51:46 +02:00
target_arm.cmake cmake/target_arm: Use NO_SPLIT for TOOLCHAIN_LD_FLAGS 2022-10-27 15:38:41 +02:00
target_arm64.cmake cmake: arm64: Add Cortex-R82 in toolchain option 2021-04-13 07:47:44 -04:00
target_mips.cmake cmake: add MIPS support 2022-01-19 13:48:21 -05:00
target_riscv.cmake riscv: Introduce BitManip extensions 2022-08-29 16:57:18 +02:00
target_sparc.cmake SPARC: add FPU support 2020-12-04 14:33:43 +02:00
target_x86.cmake x86: enable soft float support for Zephyr SDK 2021-01-20 16:45:31 -05:00