diff --git a/Makefile.inc b/Makefile.inc index 679e0ac393..ca9711d27b 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -363,7 +363,9 @@ CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS_common += -Wstrict-aliasing -Wshadow -Wdate-time CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -ffunction-sections -fdata-sections -fno-pie +ifeq ($(CONFIG_COMPILER_GCC),y) CFLAGS_common += -fno-delete-null-pointer-checks -fconserve-stack +endif ADAFLAGS_common += -gnatg -gnatp ADAFLAGS_common += -Wuninitialized -Wall -Werror