Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/67755 )
Change subject: Makefile.inc: Reorganize CFLAGS_common ......................................................................
Makefile.inc: Reorganize CFLAGS_common
Sorte CFLAGS_common by kind and alphabetically.
Signed-off-by: Elyes Haouas ehaouas@noos.fr Change-Id: Iefbcbb65766c555ecd56f1d5655a4cba5d4a2faf --- M Makefile.inc 1 file changed, 31 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/67755/1
diff --git a/Makefile.inc b/Makefile.inc index 0ed205f..fedcaad 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -430,13 +430,25 @@ CPPFLAGS_ramstage += -Isrc/device/oprom/include endif
-CFLAGS_common += -pipe -g -nostdinc -std=gnu11 -CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes -CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Wimplicit-fallthrough -CFLAGS_common += -Wshadow -Wdate-time -Wtype-limits -Wvla -CFLAGS_common += -Wdangling-else -CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer -CFLAGS_common += -fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie +# Options controlling C dialect +CFLAGS_common += -g -std=gnu11 +# C language options +CFLAGS_common += -ffreestanding -fno-builtin +# Options controlling the kind of output +CFLAGS_common += -pipe +# Options for directory search +CFLAGS_common += -nostdinc +# Options for linking +CFLAGS_common += -nostdlib +# Options for code generation conventions +CFLAGS_common += -fno-common -fno-pie +# Options that control optimization +CFLAGS_common += -fdata-sections -ffunction-sections -fomit-frame-pointer -fstrict-aliasing +# Warning Options +CFLAGS_common += -Wall -Wdangling-else -Wdate-time -Wtype-limits -Wimplicit-fallthrough +CFLAGS_common += -Wmissing-prototypes -Wno-trigraphs -Wredundant-decls -Wshadow -Wundef +CFLAGS_common += -Wstrict-prototypes -Wvla -Wwrite-strings + ifeq ($(CONFIG_COMPILER_GCC),y) # Don't add these GCC specific flags when running scan-build ifeq ($(CCC_ANALYZER_OUTPUT_FORMAT),)