path: root/Documentation/kbuild/makefiles.txt
diff options
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-19 16:28:22 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-25 12:43:00 +0900
commit39a33ff80a259b2bddebb236549baee55f9b4f41 (patch)
tree4d73506128c38c59b8ad32568895753910bc41b7 /Documentation/kbuild/makefiles.txt
parentkbuild: replace genhdr-y with generated-y (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 'Documentation/kbuild/makefiles.txt')
1 files changed, 0 insertions, 16 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index 1c49e87cea4f..247fb331c4b2 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -486,22 +486,6 @@ more details, with real examples.
Note: cc-option-yn uses KBUILD_CFLAGS for $(CC) options
- cc-option-align
- gcc versions >= 3.0 changed the type of options used to specify
- alignment of functions, loops etc. $(cc-option-align), when used
- as prefix to the align options, will select the right prefix:
- gcc < 3.00
- cc-option-align = -malign
- gcc >= 3.00
- cc-option-align = -falign
- Example:
- KBUILD_CFLAGS += $(cc-option-align)-functions=4
- In the above example, the option -falign-functions=4 is used for
- gcc >= 3.00. For gcc < 3.00, -malign-functions=4 is used.
- Note: cc-option-align uses KBUILD_CFLAGS for $(CC) options
cc-disable-warning checks if gcc supports a given warning and returns
the commandline switch to disable it. This special function is needed,