1# SPDX-License-Identifier: Apache-2.0 2 3include(${ZEPHYR_BASE}/cmake/compiler/gcc/compiler_flags.cmake) 4 5# XCC is based on GCC 4.2 which has a somewhat pedantic take on the 6# fact that linkage semantics differed between C99 and GNU at the 7# time. Suppress the warning, it's the best we can do given that 8# it's a legacy compiler. 9check_set_compiler_property(APPEND PROPERTY warning_base "-fgnu89-inline") 10 11set_compiler_property(PROPERTY warning_error_misra_sane) 12 13# XCC does not support -fno-pic and -fno-pie 14set_compiler_property(PROPERTY no_position_independent "") 15 16# Remove after testing that -Wshadow works 17set_compiler_property(PROPERTY warning_shadow_variables) 18