summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Davidson <md@google.com>2017-04-25 15:47:35 -0700
committerGreg Hackmann <ghackmann@google.com>2017-10-09 14:00:12 -0700
commit8a89d5fc7cce80477a8e8405d8f9c811758a16ed (patch)
treed1c97cde6022b3719e9f8aa4d59d1aadfa69b73c /Makefile
parent3ef0a0c8590b07fa8dfe0adb2bef6cc3baec5261 (diff)
UPSTREAM: kbuild: clang: add -no-integrated-as to KBUILD_[AC]FLAGS
The Linux Kernel relies on GCC's acceptance of inline assembly as an opaque object which will not have any validation performed on the content. The current behaviour in LLVM is to perform validation of the contents by means of parsing the input if the MC layer can handle it. Disable clangs integrated assembler and use the GNU assembler instead. Wording-mostly-from: Saleem Abdulrasool <compnerd@compnerd.org> Signed-off-by: Michael Davidson <md@google.com> Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> (cherry picked from commit a37c45cd82e62a361706b9688a984a3a63957321) Signed-off-by: Greg Hackmann <ghackmann@google.com> Change-Id: Iae412ad5294f8f5e4d66f0085a5dd70f5464ac91
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e87105a95b4e..75895a4b74b8 100644
--- a/Makefile
+++ b/Makefile
@@ -715,6 +715,8 @@ 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.