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.
Showing the changes to scripts (1 of 3 files). Show all
Unified · Split
| @@ -123,11 +123,6 @@ cc-option = $(call try-run,\ · 122 unmodified lines | |||
| 123 | cc-option-yn = $(call try-run,\ | 123 | cc-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 | ||
| 128 | cc-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) |
| 133 | cc-disable-warning = $(call try-run,\ | 128 | cc-disable-warning = $(call try-run,\ |