Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5323334imm; Tue, 21 Aug 2018 09:46:12 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw9ztjhfz5OVb832+/eImFqHfAJH3fJ+Rs2XN8bWeVf91SzmVf3Nah+TIKmGjG0DDO8sF7L X-Received: by 2002:a63:f80a:: with SMTP id n10-v6mr32509797pgh.82.1534869972702; Tue, 21 Aug 2018 09:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534869972; cv=none; d=google.com; s=arc-20160816; b=xmou8TWB7AdUSwA3cJz+Kd9Y3/2KLIrvk/TihlaayGdtmdv+jMIqhwig5+6dsSFmoJ C2YsHahhRIQsT7oQJHUxFn2ei484c2VSe3ON+abkQToqjDSnra8D0MXYmXnC/FYfWR/b H20gZKeWbeOH+K5MJXyIu++sv5vk+4zryPcTqTXDZaqm3qrwUCg7MWeVBhHZDD0q5aQs dW2EVT/y8izXNJbKQLsCvA5ebpBNNLAwzz+I/4SsFZk2yfNUF7CIOPm6cfqWVtOqgM36 7etgEo3oEWqz0lMWDoJJL2nX83Oe9IXUyddjl1MRsmYeESgT9T8Q5T4qQ29pggpmLbMD L57w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=+CCBJJVGFxAAwcmcH3qHRf297x5GqLjNnSdZ9JhxvWg=; b=Y9JNFCxU5xvtM8CHb5xxP+KqcJP0YMwXOsKQ2gEdF9+FNyPxk1I4FNuUhejYxP/vIi JYlNcYGsiIASDncSOQ9Z7jxRIKhfzBLDsoHOTPRsi0eLPKIancfUDy4B3GGeieetdveL QULoyeP75ezqX4NH+44ikvXu5Zn0PSQJswj8UEbsPrHGUElTnUpTYyjmE3CgLId6IlQ1 jNyz07fYzKHxeIIpq1tauAdfMd6/x4dPKBqUywXjU6TINnW/tpo+p67e8z0vM/QI2v3x oZ8MxJqNQGlqyqzsTRz/qCxl642Z+7pBVpfZtfxhQ7vcC2s9hrfesh2y4b80tbEAfORG uSSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LY+3Oe9B; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18-v6si12417550pgl.364.2018.08.21.09.45.57; Tue, 21 Aug 2018 09:46:12 -0700 (PDT) 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=@google.com header.s=20161025 header.b=LY+3Oe9B; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbeHUT4c (ORCPT + 99 others); Tue, 21 Aug 2018 15:56:32 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35230 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726553AbeHUT4c (ORCPT ); Tue, 21 Aug 2018 15:56:32 -0400 Received: by mail-pg1-f195.google.com with SMTP id z4-v6so3710095pgv.2 for ; Tue, 21 Aug 2018 09:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+CCBJJVGFxAAwcmcH3qHRf297x5GqLjNnSdZ9JhxvWg=; b=LY+3Oe9BzzOeNFP8x5PrmfRY16UWqVc4fGKMkVPyT7S9xW5vYzzUQaxNbW3FN+vHbp bHnk8ZevMlIrgZxZ14eH04N1aC8WmlH04cDO00Y1wPa5BZ/tk7tEeJsONeUZNKwE+oKr Cs9xOqfhv+mNbA8s7FtqtJUw7tTe6AVHiPULZLxS0iv0Cyan1N1e/oTDxNXh0YlsUMMd DbH8DWpwCMRT0Zi4ML5IK9HvTjryaqkPQcr29axgoRiEP246rbD7SSnqIlh7KbNW+1AH F8pvxbFJMnQNNrUH66qgc4e9U2/rHqwaNOfnnnX+Sl4Y5RWwcHWd1KcCC0uCoFfQ7Th/ Ysgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+CCBJJVGFxAAwcmcH3qHRf297x5GqLjNnSdZ9JhxvWg=; b=KGNR0LBhXpvu25BJDqxNQEQC/lAtj1hFNC+Xmi9AcRpRiGApeViDxcEfK/150qdG4m GsT2L/9DjhsKVtACWb5pT4XSctFLaMbEh6RCwIYMKqtJMozqTuvvXyTNafZ2YKwm5Zwk kdK4nghK4yY/BaeyoJkokIdSx930F/tSXQhZeLUXcx823qnUBb7B3sqWgYeGEpnWj6Yw ZfuI3Pm4qG90gP88XgpUR3xY/2DM+LEC5irwhhwGFELw+Gyof1nWnDUto3w06usx8Lx6 3WujGoJVxR7kq7x5AwwwkgAR0BWBtLu4NJIth2r32U6IZNFpf5g8NCBCLk3pZcChZyS9 uPDw== X-Gm-Message-State: AOUpUlELeHeDoYl9IA0EAZXWuUQybTN5wvlTRjQOjcN3oLBH83KL0cow 2/pbz5iWItX5EcwvifSveBCVwMDftN5tx9DpcAIqCg== X-Received: by 2002:aa7:800f:: with SMTP id j15-v6mr53606775pfi.174.1534869342435; Tue, 21 Aug 2018 09:35:42 -0700 (PDT) MIME-Version: 1.0 References: <1534834088-15835-1-git-send-email-yamada.masahiro@socionext.com> <7bbf0a3c97f817c81df2316fca0ec88d5a6b4302.camel@perches.com> In-Reply-To: <7bbf0a3c97f817c81df2316fca0ec88d5a6b4302.camel@perches.com> From: Nick Desaulniers Date: Tue, 21 Aug 2018 09:35:31 -0700 Message-ID: Subject: Re: [PATCH] compiler-gcc: get back Clang build To: joe@perches.com Cc: Masahiro Yamada , Linus Torvalds , Kees Cook , Jonathan Corbet , Arnd Bergmann , dwmw@amazon.co.uk, LKML , Thomas Gleixner , Will Deacon , Geert Uytterhoeven , Ingo Molnar , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 21, 2018 at 3:39 AM Joe Perches wrote: > > On Tue, 2018-08-21 at 15:48 +0900, Masahiro Yamada wrote: > > Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") > > missed the fact that is included by Clang > > as well as by GCC. > > > > Clang actually defines __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__ > > and it looks like GCC 4.2.1. > > > > $ scripts/gcc-version.sh -p clang > > 040201 > > Perhaps this would work, but I can't test it as > my clang version doesn't otherwise build a defconfig > and errors out with > > $ make CC=clang > arch/x86/Makefile:179: *** Compiler lacks asm-goto support.. Stop. Sorry, we're working on implementing this in clang and llvm for x86. I recently reviewed the design doc, and am trying to see how I can actively help push this along. It's not a small/quick change to llvm, but we're working on it. -- Thanks, ~Nick Desaulniers