diff --git a/arch/xtensa/src/lx6/Toolchain.defs b/arch/xtensa/src/lx6/Toolchain.defs index 609c69c9ec..4b64d96424 100644 --- a/arch/xtensa/src/lx6/Toolchain.defs +++ b/arch/xtensa/src/lx6/Toolchain.defs @@ -122,6 +122,8 @@ endif # Default toolchain ifeq ($(CONFIG_XTENSA_TOOLCHAIN_XCC), y) + ARCHCFLAGS += -Wno-atomic-alignment + ARCHCXXFLAGS += -Wno-atomic-alignment CC = $(CROSSDEV)xcc CXX = $(CROSSDEV)xc++ CPP = $(CROSSDEV)xcc -E -P -x c diff --git a/arch/xtensa/src/lx7/Toolchain.defs b/arch/xtensa/src/lx7/Toolchain.defs index cb1ebc1445..0102a96cff 100644 --- a/arch/xtensa/src/lx7/Toolchain.defs +++ b/arch/xtensa/src/lx7/Toolchain.defs @@ -122,6 +122,8 @@ endif # Default toolchain ifeq ($(CONFIG_XTENSA_TOOLCHAIN_XCC), y) + ARCHCFLAGS += -Wno-atomic-alignment + ARCHCXXFLAGS += -Wno-atomic-alignment CC = $(CROSSDEV)xcc CXX = $(CROSSDEV)xc++ CPP = $(CROSSDEV)xcc -E -P -x c