From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5A46C49EA4 for ; Mon, 21 Jun 2021 23:42:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 876B0611C1 for ; Mon, 21 Jun 2021 23:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232075AbhFUXo2 (ORCPT ); Mon, 21 Jun 2021 19:44:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:39678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbhFUXo1 (ORCPT ); Mon, 21 Jun 2021 19:44:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EB77E611BD; Mon, 21 Jun 2021 23:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624318932; bh=DvDLPnl1T2QLDOKnX2hy+Vza+bRnQ7CiMwP0kyUwRkA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=e/XBiSb7nbvYw6tmWEfExCE2S4NXYz0QkQqOO91wmZOXqeyoLebODJvSnzdo39vbA jE0i8gPiQL8omNOvog2a/xIkMZ7aG2X5EMY8JnHkBjW0kAIp1T7ZtMohnT+VH/k6OI 8v35NgOnTDWaN3PSLLLGVd/csN3MRV5BjtxxMO9g1KhrPI5uQVDhvmpE7vRTzhR13K ISU6RIX9/sSloKt0j5/6RzbmMboGUtvtMfAF85E2dvzGkygkQYUVU4p2veIvjUnaF2 LDuB/b7YN1Lo6BSqKOGb1ebLu0fvdBkQiy8hptNrZk9erfG3FJNluUhzkgv+pJljQp lfHFjU71LCNUQ== Subject: Re: [PATCH v2 2/3] compiler_attributes.h: cleanups for GCC 4.9+ To: Nick Desaulniers , Kees Cook Cc: Peter Zijlstra , Bill Wendling , Sami Tolvanen , Peter Oberparleiter , Masahiro Yamada , Miguel Ojeda , Luc Van Oostenryck , Ard Biesheuvel , Will Deacon , Arnd Bergmann , Andrew Morton , Rasmus Villemoes , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, x86@kernel.org, Borislav Petkov , Martin Liska , Marco Elver , Jonathan Corbet , Fangrui Song , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, Dmitry Vyukov , johannes.berg@intel.com, linux-toolchains@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Miguel Ojeda References: <20210621231822.2848305-1-ndesaulniers@google.com> <20210621231822.2848305-3-ndesaulniers@google.com> From: Nathan Chancellor Message-ID: Date: Mon, 21 Jun 2021 16:42:09 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210621231822.2848305-3-ndesaulniers@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/2021 4:18 PM, 'Nick Desaulniers' via Clang Built Linux wrote: > Since > commit 6ec4476ac825 ("Raise gcc version requirement to 4.9") > we no longer support building the kernel with GCC 4.8; drop the > preprocess checks for __GNUC_MINOR__ version. It's implied that if > __GNUC_MAJOR__ is 4, then the only supported version of __GNUC_MINOR__ > left is 9. > > Cc: Miguel Ojeda > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor > --- > include/linux/compiler_attributes.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h > index 225511b17223..84b1c970acb3 100644 > --- a/include/linux/compiler_attributes.h > +++ b/include/linux/compiler_attributes.h > @@ -27,7 +27,7 @@ > */ > #ifndef __has_attribute > # define __has_attribute(x) __GCC4_has_attribute_##x > -# define __GCC4_has_attribute___assume_aligned__ (__GNUC_MINOR__ >= 9) > +# define __GCC4_has_attribute___assume_aligned__ 1 > # define __GCC4_has_attribute___copy__ 0 > # define __GCC4_has_attribute___designated_init__ 0 > # define __GCC4_has_attribute___externally_visible__ 1 > @@ -35,8 +35,8 @@ > # define __GCC4_has_attribute___noclone__ 1 > # define __GCC4_has_attribute___no_profile_instrument_function__ 0 > # define __GCC4_has_attribute___nonstring__ 0 > -# define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8) > -# define __GCC4_has_attribute___no_sanitize_undefined__ (__GNUC_MINOR__ >= 9) > +# define __GCC4_has_attribute___no_sanitize_address__ 1 > +# define __GCC4_has_attribute___no_sanitize_undefined__ 1 > # define __GCC4_has_attribute___fallthrough__ 0 > #endif > >