aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Kbuild.include
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-19 03:28:22 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-24 23:43:00 -0400
commit39a33ff80a259b2bddebb236549baee55f9b4f41 (patch)
tree4d73506128c38c59b8ad32568895753910bc41b7 /scripts/Kbuild.include
parentae3f4151737d2aad271e5b1f2553c5d56e52850c (diff)
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. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r--scripts/Kbuild.include5
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 61f87a99bf0a..53b7d47ce43a 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -123,11 +123,6 @@ cc-option = $(call try-run,\
123cc-option-yn = $(call try-run,\ 123cc-option-yn = $(call try-run,\
124 $(CC) -Werror $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",y,n) 124 $(CC) -Werror $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",y,n)
125 125
126# cc-option-align
127# Prefix align with either -falign or -malign
128cc-option-align = $(subst -functions=0,,\
129 $(call cc-option,-falign-functions=0,-malign-functions=0))
130
131# cc-disable-warning 126# cc-disable-warning
132# Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable) 127# Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable)
133cc-disable-warning = $(call try-run,\ 128cc-disable-warning = $(call try-run,\