LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] kbuild: set no-integrated-as before incl. arch Makefile
@ 2018-03-19 21:12 Stefan Agner
  2018-03-20 15:33 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2018-03-19 21:12 UTC (permalink / raw)
  To: yamada.masahiro, michal.lkml
  Cc: arnd, mka, geert, linux-kbuild, linux-kernel, Stefan Agner

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>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 56f76a5cd006..0474803c65f7 100644
--- a/Makefile
+++ b/Makefile
@@ -487,6 +487,8 @@ CLANG_GCC_TC	:= --gcc-toolchain=$(GCC_TOOLCHAIN)
 endif
 KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
 KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
+KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
+KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
 endif
 
 RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register
@@ -744,8 +746,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
 # See modpost pattern 2
 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
 KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
-KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
-KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
 else
 
 # These warnings generated too much noise in a regular build.
-- 
2.16.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: set no-integrated-as before incl. arch Makefile
  2018-03-19 21:12 [PATCH] kbuild: set no-integrated-as before incl. arch Makefile Stefan Agner
@ 2018-03-20 15:33 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2018-03-20 15:33 UTC (permalink / raw)
  To: Stefan Agner
  Cc: Michal Marek, Arnd Bergmann, Matthias Kaehlcke,
	Geert Uytterhoeven, Linux Kbuild mailing list,
	Linux Kernel Mailing List

2018-03-20 6:12 GMT+09:00 Stefan Agner <stefan@agner.ch>:
> 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>
> ---

Applied to linux-kbuild. Thanks!

-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-20 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 21:12 [PATCH] kbuild: set no-integrated-as before incl. arch Makefile Stefan Agner
2018-03-20 15:33 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).