Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1342634imu; Mon, 5 Nov 2018 19:07:24 -0800 (PST) X-Google-Smtp-Source: AJdET5fkJhaUTFfLTWMd1CezWLQiHUQtQ3fCASMw8VYaYdD1KxCSu02/ZXT9y7daCJKCsghGnGcF X-Received: by 2002:a63:2d82:: with SMTP id t124mr22177240pgt.260.1541473644260; Mon, 05 Nov 2018 19:07:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541473644; cv=none; d=google.com; s=arc-20160816; b=aExxaZBpUZU7QSaYW5l3SNh8NdrSHw625pEFJpKO28k4Jb5rakCEOeVsFUJ9DHniue duF4GoK40AOsss7ZSJqr/UvtdPbsh2G0ErSEhxfls9lAxdLQeFl5v1G6M4PKq+6KsyEo IyXUKpA+iW3l+u6gdElGdM5Luxdw4cRfjibGZK+qzUJ1UN5czybUNY80+7LmkdShOD4K +VWCDxXrnab4lvEwD8OMENBkAEkJvZkDFncKT/auNnJ0l4ePQiJwKod+j6rgCJ+n5Z2r GCoSCoMNsayk896d8yQft0IGLJY3YWbBZcDh+9syIZqbOv06UVS4vop7RH9xbrTMX/x3 enyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=xfZW3fJh1acenYkJWuEJ06iyiSzfKWNTaLxqo0qkZZA=; b=jNGNBv+WsknNrUzseIGoXZf3u3gzGfOtYes2xIdIJsi+SiuGZaEAjBxno6EKPYcKwI J6GiS6HiqeMbmv8QwoI6SZ5uFCwqUh9bST2ZQwpG2kAfo4dl59YUskdNGMFJb8bB6Djw 5Bfb6lX/grrmtX8Qhaj/nNDnkDWLju+0rKaUIHubISONnzlxrL7TpgGt0EHp8EpUDPC+ JCrX2P3hEwuBlR0re+dbd+lh1KW6FPeWEDF+xx54pw+JKOlBSq6yhSGDveMVioTuyPsP IkvQwdggI5ps2dnPtAh5u7BhfmgJglN6O4UouRn0mwLFd3uE9HyKZ0SgDc5pYyXh3UDi 6Zmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QdrDij41; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9-v6si1795517pfi.134.2018.11.05.19.07.09; Mon, 05 Nov 2018 19:07:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QdrDij41; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729272AbeKFM3j (ORCPT + 99 others); Tue, 6 Nov 2018 07:29:39 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:54209 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727448AbeKFM3j (ORCPT ); Tue, 6 Nov 2018 07:29:39 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id wA635Mp1025438; Tue, 6 Nov 2018 12:05:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com wA635Mp1025438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1541473523; bh=xfZW3fJh1acenYkJWuEJ06iyiSzfKWNTaLxqo0qkZZA=; h=From:To:Cc:Subject:Date:From; b=QdrDij41X6HF14h2xn51gHLqkxucMzmu7z6kQOrmVUdeft3zgXFbshmAhRJKIwDhw YQjuaJM3EdbPvTHVK7YpqGLF79F/qek1ThvCV09Hd3ZWVq56ET/8Xq7Giz27jzYOr3 gL4N4uAZCPnv4K5lDgxGxPfDP8uRAr1i3ry4qur5xioF4SFoNjHa1Vmvdhjo+nd2yo rEUWrYCeJt5ZE8tFrB0ZjASK+zOpQiN53sUdF295o8VAGUkShQU7Nz5Z1PmutHKyNn HuEJ/OyAhiy8izNKsQ2wJOCp94X+96OhDsKRRG3FOauA2ENxhhBy9f7fNFBMaobxRc OMZo6fETXkX4Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Nick Desaulniers , Stefan Agner , Matthias Kaehlcke , Joel Stanley , linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] kbuild: add -no-integrated-as Clang option unconditionally Date: Tue, 6 Nov 2018 12:04:54 +0900 Message-Id: <1541473495-25262-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are still a way off the Clang's integrated assembler support for the kernel. Hence, -no-integrated-as is mandatory to build the kernel with Clang. If you had an ancient version of Clang that does not recognize this option, you would not be able to compile the kernel anyway. Signed-off-by: Masahiro Yamada --- Changes in v2: - New patch Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 93315eb..da11700 100644 --- a/Makefile +++ b/Makefile @@ -497,8 +497,8 @@ CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN) endif KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX) KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX) -KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) -KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) +KBUILD_CFLAGS += -no-integrated-as +KBUILD_AFLAGS += -no-integrated-as endif RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register -- 2.7.4