diff options
author | Stefan Agner <stefan@agner.ch> | 2018-03-19 17:12:53 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-21 05:20:11 -0400 |
commit | 0f0e8de334c54c38818a4a5390a39aa09deff5bf (patch) | |
tree | 90c66682b4793e1e249fc33ecbf143cbd70feb02 | |
parent | 825d487583089f9a33d31650c9c41f6474aab7fc (diff) |
kbuild: set no-integrated-as before incl. arch Makefile
In order to make sure compiler flag detection for ARM works
correctly the no-integrated-as flags need to be set before
including the arch specific Makefile.
Fixes: cfe17c9bbe6a ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -487,6 +487,8 @@ CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN) | |||
487 | endif | 487 | endif |
488 | KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) | 488 | KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) |
489 | KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) | 489 | KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) |
490 | KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) | ||
491 | KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) | ||
490 | endif | 492 | endif |
491 | 493 | ||
492 | RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register | 494 | RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register |
@@ -743,8 +745,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) | |||
743 | # See modpost pattern 2 | 745 | # See modpost pattern 2 |
744 | KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) | 746 | KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) |
745 | KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) | 747 | KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) |
746 | KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) | ||
747 | KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) | ||
748 | else | 748 | else |
749 | 749 | ||
750 | # These warnings generated too much noise in a regular build. | 750 | # These warnings generated too much noise in a regular build. |