From patchwork Tue Nov 6 03:04:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 150236 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3380332ljp; Mon, 5 Nov 2018 19:06:44 -0800 (PST) X-Google-Smtp-Source: AJdET5fzE0PYQVPS25yw8m+fp61tmk6PyPXIbhqsxdL441i4RB3EjLUo3Jz6DqEJQvEeY2Q4vznY X-Received: by 2002:a17:902:163:: with SMTP id 90-v6mr24920313plb.87.1541473604248; Mon, 05 Nov 2018 19:06:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541473604; cv=none; d=google.com; s=arc-20160816; b=bHjFOoTt8jNyruHGF6aY1+UKr/oKw2PgBqKFh8y0wqznyGJ1ZOftEqGKtNhohwUPn5 2M4XCQC0O6w+CPnx3+ckay0tYzAXHzMI58I7EMS5EO9uxw0DokYVRSv+k121xsYBeXNj ad9WSl2G8Hp1o5wzfZF9BvqPwUIH/TcLf22eZTkD8fdMLb59fTNSc5OUcPThV7mFNSSK PzRe5P2VZPCIZyB1hIjj2SLkDasDdqNK5rqL43/3AhFAhsA2wMJZ9fOfo7BFS+QesPE8 T5kTCGhNaICf12lrw1CSgeJxlHiL2Xu1LCSI8n6wEP7i4yWDt/UxLtPmUO6dg3NBGNVL pXlg== 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 r128-v6si31779565pfc.116.2018.11.05.19.06.43; Mon, 05 Nov 2018 19:06:44 -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 S1729601AbeKFM3j (ORCPT + 32 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(-) -- 2.7.4 Reviewed-by: Nick Desaulniers Tested-by: Nick Desaulniers 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