Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1872207pxb; Fri, 10 Sep 2021 16:42:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIXtCn6b6XmduyLO4O1F8gW30F+bC3mktSXCwhzIylUwUbCZelln1KFogpgJ+PK38xDz0U X-Received: by 2002:a05:6e02:8a7:: with SMTP id a7mr150891ilt.246.1631317334167; Fri, 10 Sep 2021 16:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631317334; cv=none; d=google.com; s=arc-20160816; b=YJJBDE/4kuoKRw8CUn2JNjDNolh3sg61Htdo5DLSVEUlZDy5iS2Ey+QlM+Ka1G1fTC KdHCsUdGIXkEaUQ9yGxb0r4jrOc5Ai+uax8wHmhRUBDr6ifvgKQKqCPk/FfVQjI4SFR9 DhJxJprLn/isvn8j/PMi2o6MTsX81Kiluch9H0yw186Di22x9XHwT8B83vdb4p8awt2+ BD+kKDANLfLME+wFWjykDMFH5RmRrErhxh4+bH8cxYotDF32WivSvsQvacmj0RWe9vlV 0RqSrJJiowwvNWFRfyLctZyOMAsAqpwBAY95hdVeOHx/go+3NGH9bbSE/juclkie5Qcy FOdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=DKjlgcg+r0e4xO0bskFN1KIlMorQwSRD5KKU/bKadhI=; b=RuUJ47/iNLDkhFYMkiaCmqZ/AAEjy8u9mUqni0gNifIHg8eP+wGJKozS3FEakMfVG/ 8PnzW+qWMGmcMgzsN1PjBHgJVyV/fSUUZG+/PcWOpfQdaYbLDD8nmSOyFP9lO3reaiZ+ PE9zCfIEYe+hHYqJKgHrrcfSGAy0rRPpenzP2fCGnqkjB2atjACj0eQcr2TSTREevpTP fqyLmP3rO1B94srdOMJ7tWbzU41oFAxEKjvoQKCitIZTkyfFtL6nUXJhOpPNb/YCFIRS wX2+oaSy+ajUgQgmkGb5Eyf7VCTMkvcohvKoOM1fH1jQYeiYhfOwvz75UZvD92040slt p14Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rNlh8q+W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b8si105150ios.12.2021.09.10.16.42.03; Fri, 10 Sep 2021 16:42:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rNlh8q+W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234883AbhIJXmM (ORCPT + 99 others); Fri, 10 Sep 2021 19:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232762AbhIJXmF (ORCPT ); Fri, 10 Sep 2021 19:42:05 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E552C061574 for ; Fri, 10 Sep 2021 16:40:54 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id o202-20020a25d7d3000000b005a704560db0so2773897ybg.17 for ; Fri, 10 Sep 2021 16:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=DKjlgcg+r0e4xO0bskFN1KIlMorQwSRD5KKU/bKadhI=; b=rNlh8q+W4UPNA/Z0p9mrTRUDKYG3KATgZib4VXtq55X9glfMG8NNdKRgWaTMphU3i4 dKYE3QHp4tUQmZPlG8LlYCYVeeU73EkKI1YhpDweHtpn/h12J4Sd0bKvD9Kgt6niOKTM tJolRawwapExOpVKVLUdwfcRhsAn3zdy9/5fDeW4wLypoTr7+NLioaQdFsAuwIH/DO50 hoenrJ8wpPpUsqavUuKVLOeHUNGIAj2+2HKj3j/7/TAjNhoMc1YOnJeLGTox58m02eC0 zv6tF6a4qq0Ylfu3om8yS6a5j+jiWP4R4zN4Jwuukst+FwB5Br0Umo4LsnaqhN/edylV BHXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=DKjlgcg+r0e4xO0bskFN1KIlMorQwSRD5KKU/bKadhI=; b=X3ejpzBtf2/tUI4bNwPTZngLAnfVKBbpplk9HVc4+RObvHgVwK/1H3B6LbwPDSb9im M9ldCY4azu8VBVyBfXcw46x5/94Qw81BAWOKupXbvqaAby3ux4p+DdFfoEw/fbkPz5wo 61FtsjUpJI75XPs6eV1WZ0oy+xSrD7xQOzqFY17gj5EhMm+n2amzKfaTeN4YPLW8tHiR RNQzvt23+ZKr/eir8qtPS2gq4MWfwEnOFP7sS+5Whk5TLSGyw8NbF8icKyGj30zyL/3a md69sEzu4Z+0tTr3ItXWda6SAmDlF2eGNcVzFmQ1t5Ca+BGR8611HwdeRsJq5k9/Dh71 wJGw== X-Gm-Message-State: AOAM532Kwz8Z6BEDMRYQFf2O5aRj0dvWuJ2CPNDuMlnrPHsd6js/UHuZ pO318tMg93yWyvCHusWi6Pq6NKcu3cy8NsaVaqg= X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:2b76:71d3:b5fb:3734]) (user=ndesaulniers job=sendgmr) by 2002:a25:a522:: with SMTP id h31mr368063ybi.355.1631317253607; Fri, 10 Sep 2021 16:40:53 -0700 (PDT) Date: Fri, 10 Sep 2021 16:40:38 -0700 In-Reply-To: <20210910234047.1019925-1-ndesaulniers@google.com> Message-Id: <20210910234047.1019925-2-ndesaulniers@google.com> Mime-Version: 1.0 References: <20210910234047.1019925-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.33.0.309.g3052b89438-goog Subject: [PATCH 01/10] Documentation: raise minimum supported version of GCC to 5.1 From: Nick Desaulniers To: Andrew Morton Cc: Linus Torvalds , Rasmus Villemoes , Nathan Chancellor , Masahiro Yamada , Joe Perches , Arnd Bergmann , Stephen Rothwell , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit fad7cd3310db ("nbd: add the check to prevent overflow in __nbd_ioctl()") raised an issue from the fallback helpers added in commit f0907827a8a9 ("compiler.h: enable builtin overflow checkers and add fallback code") Specifically, the helpers for checking whether the results of a multiplication overflowed (__unsigned_mul_overflow, __signed_add_overflow) use the division operator when !COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW. This is problematic for 64b operands on 32b hosts. Also, because the macro is type agnostic, it is very difficult to write a similarly type generic macro that dispatches to one of: * div64_s64 * div64_u64 * div_s64 * div_u64 Raising the minimum supported versions allows us to remove all of the fallback helpers for !COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW, instead dispatching the compiler builtins. arm64 has already raised the minimum supported GCC version to 5.1, do this for all targets now. See the link below for the previous discussion. Link: https://lore.kernel.org/all/20210909182525.372ee687@canb.auug.org.au/ Link: https://lore.kernel.org/lkml/CAK7LNASs6dvU6D3jL2GG3jW58fXfaj6VNOe55NJnTB8UPuk2pA@mail.gmail.com/ Link: https://github.com/ClangBuiltLinux/linux/issues/1438 Reported-by: Stephen Rothwell Reported-by: Nathan Chancellor Suggested-by: Rasmus Villemoes Signed-off-by: Nick Desaulniers --- Documentation/process/changes.rst | 2 +- scripts/min-tool-version.sh | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst index d3a8557b66a1..e35ab74a0f80 100644 --- a/Documentation/process/changes.rst +++ b/Documentation/process/changes.rst @@ -29,7 +29,7 @@ you probably needn't concern yourself with pcmciautils. ====================== =============== ======================================== Program Minimal version Command to check the version ====================== =============== ======================================== -GNU C 4.9 gcc --version +GNU C 5.1 gcc --version Clang/LLVM (optional) 10.0.1 clang --version GNU make 3.81 make --version binutils 2.23 ld -v diff --git a/scripts/min-tool-version.sh b/scripts/min-tool-version.sh index 319f92104f56..4edc708baa63 100755 --- a/scripts/min-tool-version.sh +++ b/scripts/min-tool-version.sh @@ -17,13 +17,7 @@ binutils) echo 2.23.0 ;; gcc) - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293 - # https://lore.kernel.org/r/20210107111841.GN1551@shell.armlinux.org.uk - if [ "$SRCARCH" = arm64 ]; then - echo 5.1.0 - else - echo 4.9.0 - fi + echo 5.1.0 ;; icc) # temporary -- 2.33.0.309.g3052b89438-goog