Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3882555pxm; Tue, 1 Mar 2022 07:12:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIvknOlXSa+LCXcpGoot2fGh6ocLomsdW3Xvbb3YzOi6sxBGT/pCAJZSDQt9UFbv/eN9PP X-Received: by 2002:a05:6402:11cf:b0:407:1939:9a4e with SMTP id j15-20020a05640211cf00b0040719399a4emr24847481edw.298.1646147571419; Tue, 01 Mar 2022 07:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646147571; cv=none; d=google.com; s=arc-20160816; b=zQOqcDS+N4EZ3LEVLtYwvonTMd2RHScBHAI1COxs/Ln8bzxmwn+HgipQvmQDIWXKh5 opBHrkhmBqQzf9gZRa0hsqIk8My4Q3W/UKtmyKNDzXs+oepjEUcZw/vYMS/Mx4sjjZWW UZgnuwo9DkiN7PcBaZK8ijvS0BQShFt6NIQnTmDCIkc0NHwx1M9thDvDYP51IuWmCF8L pBMnFNvU21WHmCxOgl93FA7m91EafAMdJDR3s7Qk4+RBBdmACbZfmaPCcKyVgfGwaoPd qopGzZJCbdNRtpN93ONLhsz67jsXBCKfAGQGcXo253E0PKbJIv/L94hLJfn/7Y0X7n3d 6IUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=o2NgCtFCCViEWWJZ/MxDt8WYruV+Na6/HFB90W3Ddms=; b=MeVkShlmcod4zSKlHA8yknqFBTD696ZABc77WUw7pBnpWVwwnAZvgo9w8TcGvXt3lm PigohiBNX3I+8XVkU5RtvflKr0DxyJUmEnad7hP+8TL5N3SXJtrgbf7++rY6UOzGCOrB crsxDBOa1PmxVdgT/oPWw3THd2iOvWP8iNNC4Y/6EgZ+lT1ZyVtVZ4OkkyQoE1BwhGCr E5bdbQWCzhFqFWSXCIqzZQqlHWoBRB6WoG+l0R7wziBHHu6EHmBLRjpJB2H1Io3cEt1H nZpy39Yis2BnG5bDYFZJ+DiezkilbyZ5HRaNxcTiGtXjTsslVzYXAeHzpt0Vf+et4MiK iNoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lMdLBJop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a056402171500b00400437e88a9si8520694edu.41.2022.03.01.07.12.26; Tue, 01 Mar 2022 07:12:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lMdLBJop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235319AbiCAOqG (ORCPT + 99 others); Tue, 1 Mar 2022 09:46:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231738AbiCAOqA (ORCPT ); Tue, 1 Mar 2022 09:46:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B6A36E39; Tue, 1 Mar 2022 06:45:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2937461592; Tue, 1 Mar 2022 14:45:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84BB8C340F8; Tue, 1 Mar 2022 14:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646145917; bh=o2NgCtFCCViEWWJZ/MxDt8WYruV+Na6/HFB90W3Ddms=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lMdLBJopxDEHQ2byF9/34TX2fjEtkjCCJ8lMoLev24s9mqzvVl87yTCPxcZIksJKl iFb5iGRXli28GDe7sXTT7Boj+U8Eg0FFMeFAzJRsZ1VLyvH0x9p0acTDHkBbyBqsLK k5GCyDImzqYKb1WXjZEAobLz7CO7SuNCGUByyyVyMH8DuIEprdCTCknAO9lUxgt+yR pVRZR5DVF1IMygzEppyOSCmoUaVPFsRdchUQFKaFwxPaHHYfrB2RmfLexGkWWN0XqO H0GQE+Gf4s59y/zQ4Gbl1QvMsp5nw9rNyEsHwyGkuLG862yxhilFyASVQEUhhaxMMj 5BMGXA7qPfjPw== Received: by mail-wr1-f51.google.com with SMTP id n14so20854482wrq.7; Tue, 01 Mar 2022 06:45:17 -0800 (PST) X-Gm-Message-State: AOAM531c9SV56jrV2wk0qYOBTJIq3FYqNpUdQfIUtt6fgDKWfMj+2pUZ pF+vqjAuh2A/z45t8mTEgJ/oF/lbl/fKtoccR9k= X-Received: by 2002:a5d:63c2:0:b0:1ef:840e:e139 with SMTP id c2-20020a5d63c2000000b001ef840ee139mr12407945wrw.192.1646145915672; Tue, 01 Mar 2022 06:45:15 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: From: Arnd Bergmann Date: Tue, 1 Mar 2022 15:44:59 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Miguel Ojeda Cc: Linux Kbuild mailing list , Arnd Bergmann , Linus Torvalds , Masahiro Yamada , llvm@lists.linux.dev, Jonathan Corbet , Federico Vaga , Alex Shi , Hu Haowen , Michal Marek , Nick Desaulniers , Linux Doc Mailing List , linux-kernel , linux-doc-tw-discuss@lists.sourceforge.net, Linux ARM , Intel Graphics Development , dri-devel , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, Linux Btrfs Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 1, 2022 at 11:43 AM Miguel Ojeda wrote: > > On Mon, Feb 28, 2022 at 11:32 AM Arnd Bergmann wrote: > > > > -under ``-std=gnu89`` [gcc-c-dialect-options]_: the GNU dialect of ISO C90 > > -(including some C99 features). ``clang`` [clang]_ is also supported, see > > +under ``-std=gnu11`` [gcc-c-dialect-options]_: the GNU dialect of ISO C11 > > +(including some C17 features). ``clang`` [clang]_ is also supported, see > > I think the "(including some C17)" bit would not make much sense > anymore. There were no major changes in C17 and GCC implements > `-std=c11` and `-std=c17` as basically the same thing according to the > docs (and GNU extensions apply equally to both, I would assume). Ok, changed now. > When I wrote the "(including some C99 features)" I meant that GCC > implemented some C99 features as extensions in C90 mode, and the > kernel used some of those (e.g. the now gone VLAs). I suppose it's still true for some c2x features (static_assert, fallthrough, binary literals, ...), but it seems easier to just leave it out. > With that changed, for `programming-language.rst`: > > Reviewed-by: Miguel Ojeda Thanks.