History

kbuild: remove cc-option-align

Documentation/kbuild/makefiles.txt says the change for align options occurred at GCC 3.0, and Documentation/process/changes.rst says the minimal supported GCC version is 3.2, so it should be safe to hard-code -falign* options. Fix the only user arch/x86/Makefile_32.cpu and remove cc-option-align.

Masahiro Yamada committed 9 years ago

Commit 39a33ff1 parent ae3f4153 files · +3 −25Browse files

Showing the changes to scripts (1 of 3 files). Show all

Unified · Split

scripts/Kbuild.include+0−5
@@ -123,11 +123,6 @@ cc-option = $(call try-run,\ · 122 unmodified lines
123123 cc-option-yn = $(call try-run,\
124124 $(CC) -Werror $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",y,n)
125125
126−# cc-option-align
127−# Prefix align with either -falign or -malign
128−cc-option-align = $(subst -functions=0,,\
129− $(call cc-option,-falign-functions=0,-malign-functions=0))
130−
131126 # cc-disable-warning
132127 # Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable)
133128 cc-disable-warning = $(call try-run,\