From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E554D17D1; Tue, 1 Mar 2022 10:44:05 +0000 (UTC) Received: by mail-io1-f42.google.com with SMTP id m185so17934778iof.10; Tue, 01 Mar 2022 02:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=WrUDonvN2fO25UTk5VNVhFhd8gruRaN5xzDoP4JD0Sakac0hlwGn0vLFs4yYd4XAFv uZKJIKn4j7cuELvqeeSDPXMNu2C1n0MsJpfl9rt1CcXMWz8ysAwYiWu0FU5ssFw8GnBu KImb7bl4uZxpEQ889GR2FwiQtAowT5cOncwrkuheaR+UErGWa6dJdP5knzUj9ZNji+C6 SaCIGAmJwbqyXPo1H+nGW/xKoV4Sv5xxMQcmeQv2UvCQ1LPx9cytIPoPatO3xtpXO37Q QL3drAKRoTDr8u6LO2OfPrWDqwyTUyYOMOn4N3XOwbIN3FW3QG+ijjXJMFfWWnQ72HyS YuTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=vfOPM8eOGI4HYZ6fq66ilEumZWClHSPvV2Rc9k16wBI9fGlp+hW2JkPCSxt9Jm52Ns WKtbKbJ6DE2EvWVKWCzRz0i0Ydy3GMK3n35S3Ctt8gnYdJ2E7BMNctILqiCgA2ECZzP7 2p9L01J7p8vQIf4et3EP6tcErgtrKv6x08c8rhZQ0K/7ATJMplgysfvYuUwMop7qp4MN WiXnHN6qiKtnhX62CA9bVSxFRf3QSbFAs4qnBH4CdzyxqezOpMAt/B5G0YGJU/BUIv1Y UAZv9ixlqbpHvdbcBm8HIbj/iUb4sZ/Yu4pCCwmxAZCsUAiAZOPX9sDieeXLZhmNxlmZ tA6A== X-Gm-Message-State: AOAM530bShUWimLF9ENYSzynGiFLTiX/KAan3quOBbdLmkiAcEbTdwPG 5v5nQoSjAJFETLnHyHzXPfEvqE7RTc/YpSRKAJg= X-Google-Smtp-Source: ABdhPJw1aZ/CGkeAZM6RKVYVHBay0f9lMjJdsMqyLhdijbZf60uaKu7bggqdaHiabrS+XPZY5qiqhEF5Hass1iDJqZk= X-Received: by 2002:a6b:661a:0:b0:640:dd42:58ff with SMTP id a26-20020a6b661a000000b00640dd4258ffmr18921633ioc.64.1646131444958; Tue, 01 Mar 2022 02:44:04 -0800 (PST) Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: <20220228103142.3301082-1-arnd@kernel.org> From: Miguel Ojeda Date: Tue, 1 Mar 2022 11:43:53 +0100 Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Arnd Bergmann 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" 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). 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). With that changed, for `programming-language.rst`: Reviewed-by: Miguel Ojeda Cheers, Miguel 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 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31336C433EF for ; Tue, 1 Mar 2022 10:44:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B63110E631; Tue, 1 Mar 2022 10:44:07 +0000 (UTC) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by gabe.freedesktop.org (Postfix) with ESMTPS id B37C089819; Tue, 1 Mar 2022 10:44:05 +0000 (UTC) Received: by mail-io1-xd2e.google.com with SMTP id r7so17968825iot.3; Tue, 01 Mar 2022 02:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=WrUDonvN2fO25UTk5VNVhFhd8gruRaN5xzDoP4JD0Sakac0hlwGn0vLFs4yYd4XAFv uZKJIKn4j7cuELvqeeSDPXMNu2C1n0MsJpfl9rt1CcXMWz8ysAwYiWu0FU5ssFw8GnBu KImb7bl4uZxpEQ889GR2FwiQtAowT5cOncwrkuheaR+UErGWa6dJdP5knzUj9ZNji+C6 SaCIGAmJwbqyXPo1H+nGW/xKoV4Sv5xxMQcmeQv2UvCQ1LPx9cytIPoPatO3xtpXO37Q QL3drAKRoTDr8u6LO2OfPrWDqwyTUyYOMOn4N3XOwbIN3FW3QG+ijjXJMFfWWnQ72HyS YuTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=fYEMdJ5+FPFFp3tHfuZPkEAWnlaVjOSk+jEwi0Zs/1MrGGl4oUqs+8BDM0Vgya38KA qzRLCa+edwLcuP3fYStVZnB1NvNnl09yxNuo3HebCp3P3JHPPbhdFwl3OnPBm7Sz3Ozr 67QMuAYmWMdhfZAIEG6WLqFpMuqRjiA3SMXhplV4Jwr5qnxpYH+ys4BUqVPiMRI2Uzi7 WA5WU7yHEmgU2ZM7Ot3XFCoQne/KkjXw//wVAN10KKEKMqUJH0x+h74r9/TjonUTwAiL U+vGvAVuv9Av4VHp8MBGv4DFJlLYSDxnIORsxHwG7eW7tlVq2IkwdCdrTBrKCHrWlasZ BdNQ== X-Gm-Message-State: AOAM533SnM0QXgX5LSqPIab4VInY97qK1zVsjNG9XJ+hBOVF3fwvE8Uv R2Lb+xMp0f5T6OzZIFOQyD60FiD0BtcxwfOQtoQ= X-Google-Smtp-Source: ABdhPJw1aZ/CGkeAZM6RKVYVHBay0f9lMjJdsMqyLhdijbZf60uaKu7bggqdaHiabrS+XPZY5qiqhEF5Hass1iDJqZk= X-Received: by 2002:a6b:661a:0:b0:640:dd42:58ff with SMTP id a26-20020a6b661a000000b00640dd4258ffmr18921633ioc.64.1646131444958; Tue, 01 Mar 2022 02:44:04 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: <20220228103142.3301082-1-arnd@kernel.org> From: Miguel Ojeda Date: Tue, 1 Mar 2022 11:43:53 +0100 Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux ARM , Michal Marek , Linux Doc Mailing List , Arnd Bergmann , Jonathan Corbet , linux-staging@lists.linux.dev, Masahiro Yamada , llvm@lists.linux.dev, Nick Desaulniers , linux-kernel , dri-devel , greybus-dev@lists.linaro.org, Alex Shi , Federico Vaga , Hu Haowen , Intel Graphics Development , Linux Btrfs , Linus Torvalds , linux-doc-tw-discuss@lists.sourceforge.net, Linux Kbuild mailing list Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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). 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). With that changed, for `programming-language.rst`: Reviewed-by: Miguel Ojeda Cheers, Miguel 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EDE4DC433EF for ; Tue, 1 Mar 2022 10:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=j35bcrzc4eiVnsZwu+2rDTUDe1EQqHeaCQUCU2BZh2w=; b=R3M7K4wht39W5b Oj5ag7T4XgSXrnyJpNv87lghNUdErT2L2tZMuIQ/QvVSvgWIEGrqKCV29IbVEQ4n1v0gzK85TWtak BpwtGlmR4gSpjmpYOCP1F9YdlScGwIVO5Egopaox4LV0nOLKahvjKHUSLmOoLXkty4v+saKEwnjcb YObNNIK61sun4Bon8GbzM5JtX4MfcIhK7ZvVCsTGRMa/KP5Y5ppfToGDzX3gVUaSJxoh+d8o2DZ72 GbRkdZHTEZwgLfzySRBsfNxqK/hjlmcD8ELddZX33zPd/UCw79p98ALcPx4qDpxUj5HkdcvBDXOIF vJtu23fUGEV4Xy9BAQAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOzzM-00GBL7-4H; Tue, 01 Mar 2022 10:44:16 +0000 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOzzC-00GBHa-90 for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2022 10:44:11 +0000 Received: by mail-io1-xd29.google.com with SMTP id c23so17977636ioi.4 for ; Tue, 01 Mar 2022 02:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=WrUDonvN2fO25UTk5VNVhFhd8gruRaN5xzDoP4JD0Sakac0hlwGn0vLFs4yYd4XAFv uZKJIKn4j7cuELvqeeSDPXMNu2C1n0MsJpfl9rt1CcXMWz8ysAwYiWu0FU5ssFw8GnBu KImb7bl4uZxpEQ889GR2FwiQtAowT5cOncwrkuheaR+UErGWa6dJdP5knzUj9ZNji+C6 SaCIGAmJwbqyXPo1H+nGW/xKoV4Sv5xxMQcmeQv2UvCQ1LPx9cytIPoPatO3xtpXO37Q QL3drAKRoTDr8u6LO2OfPrWDqwyTUyYOMOn4N3XOwbIN3FW3QG+ijjXJMFfWWnQ72HyS YuTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=BoIvX4yJyCDWp4DOt48J8Gd+RXrJ9peqASpVDxEDX54LSs3apmMKHAW3RfuMhPCUW8 k8gBVQbWg6g07VxyZH0tN6tEPEoIyS4koIZGARWVg2z5XLQQtbwfnK+FIEx97JS2KaTe mKlWN+sMrvH2dVc6iUkoEE02e0LOhLRNixZcoDakKQ7UHDdI9yPPe5cEPQ1xn/M0zr1H ZKHVwcxVWcjNkN/70tZdvYxI7LuK8GKDcRGu4AyUf26Poy2si90hS+o2GXTufFTXGwXY eByKShryP5IhmMWT6issblHtKUwoJv4YXMtKp+yQOAumYOKAqZKzcUMdf574bs7u0s5q PnKA== X-Gm-Message-State: AOAM533p2l6600qobDwNTehU+C70/4UcfaZa8w5XEWrFuXTCC+RKcI8g yDzOl8tF/Z7b/sPmpm93ZzuFlkXFJIApGvu+tLg= X-Google-Smtp-Source: ABdhPJw1aZ/CGkeAZM6RKVYVHBay0f9lMjJdsMqyLhdijbZf60uaKu7bggqdaHiabrS+XPZY5qiqhEF5Hass1iDJqZk= X-Received: by 2002:a6b:661a:0:b0:640:dd42:58ff with SMTP id a26-20020a6b661a000000b00640dd4258ffmr18921633ioc.64.1646131444958; Tue, 01 Mar 2022 02:44:04 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: <20220228103142.3301082-1-arnd@kernel.org> From: Miguel Ojeda Date: Tue, 1 Mar 2022 11:43:53 +0100 Message-ID: Subject: Re: [PATCH] [v2] Kbuild: move to -std=gnu11 To: Arnd Bergmann 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220301_024406_406892_FF03868E X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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). 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). With that changed, for `programming-language.rst`: Reviewed-by: Miguel Ojeda Cheers, Miguel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5119C433F5 for ; Tue, 1 Mar 2022 20:03:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C417710E829; Tue, 1 Mar 2022 20:03:02 +0000 (UTC) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by gabe.freedesktop.org (Postfix) with ESMTPS id B37C089819; Tue, 1 Mar 2022 10:44:05 +0000 (UTC) Received: by mail-io1-xd2e.google.com with SMTP id r7so17968825iot.3; Tue, 01 Mar 2022 02:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=WrUDonvN2fO25UTk5VNVhFhd8gruRaN5xzDoP4JD0Sakac0hlwGn0vLFs4yYd4XAFv uZKJIKn4j7cuELvqeeSDPXMNu2C1n0MsJpfl9rt1CcXMWz8ysAwYiWu0FU5ssFw8GnBu KImb7bl4uZxpEQ889GR2FwiQtAowT5cOncwrkuheaR+UErGWa6dJdP5knzUj9ZNji+C6 SaCIGAmJwbqyXPo1H+nGW/xKoV4Sv5xxMQcmeQv2UvCQ1LPx9cytIPoPatO3xtpXO37Q QL3drAKRoTDr8u6LO2OfPrWDqwyTUyYOMOn4N3XOwbIN3FW3QG+ijjXJMFfWWnQ72HyS YuTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dohQLzfhr7wZu6SxVtIw3CHG42SObGN2SXyswtlVBsg=; b=fYEMdJ5+FPFFp3tHfuZPkEAWnlaVjOSk+jEwi0Zs/1MrGGl4oUqs+8BDM0Vgya38KA qzRLCa+edwLcuP3fYStVZnB1NvNnl09yxNuo3HebCp3P3JHPPbhdFwl3OnPBm7Sz3Ozr 67QMuAYmWMdhfZAIEG6WLqFpMuqRjiA3SMXhplV4Jwr5qnxpYH+ys4BUqVPiMRI2Uzi7 WA5WU7yHEmgU2ZM7Ot3XFCoQne/KkjXw//wVAN10KKEKMqUJH0x+h74r9/TjonUTwAiL U+vGvAVuv9Av4VHp8MBGv4DFJlLYSDxnIORsxHwG7eW7tlVq2IkwdCdrTBrKCHrWlasZ BdNQ== X-Gm-Message-State: AOAM533SnM0QXgX5LSqPIab4VInY97qK1zVsjNG9XJ+hBOVF3fwvE8Uv R2Lb+xMp0f5T6OzZIFOQyD60FiD0BtcxwfOQtoQ= X-Google-Smtp-Source: ABdhPJw1aZ/CGkeAZM6RKVYVHBay0f9lMjJdsMqyLhdijbZf60uaKu7bggqdaHiabrS+XPZY5qiqhEF5Hass1iDJqZk= X-Received: by 2002:a6b:661a:0:b0:640:dd42:58ff with SMTP id a26-20020a6b661a000000b00640dd4258ffmr18921633ioc.64.1646131444958; Tue, 01 Mar 2022 02:44:04 -0800 (PST) MIME-Version: 1.0 References: <20220228103142.3301082-1-arnd@kernel.org> In-Reply-To: <20220228103142.3301082-1-arnd@kernel.org> From: Miguel Ojeda Date: Tue, 1 Mar 2022 11:43:53 +0100 Message-ID: To: Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Tue, 01 Mar 2022 20:02:59 +0000 Subject: Re: [Intel-gfx] [PATCH] [v2] Kbuild: move to -std=gnu11 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux ARM , Michal Marek , Linux Doc Mailing List , Arnd Bergmann , Jonathan Corbet , linux-staging@lists.linux.dev, Masahiro Yamada , llvm@lists.linux.dev, Nick Desaulniers , linux-kernel , dri-devel , greybus-dev@lists.linaro.org, Alex Shi , Federico Vaga , Hu Haowen , Intel Graphics Development , Linux Btrfs , Linus Torvalds , linux-doc-tw-discuss@lists.sourceforge.net, Linux Kbuild mailing list Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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). 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). With that changed, for `programming-language.rst`: Reviewed-by: Miguel Ojeda Cheers, Miguel