From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id C412B3858D1E for ; Fri, 2 Sep 2022 06:16:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C412B3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x636.google.com with SMTP id og21so1858075ejc.2 for ; Thu, 01 Sep 2022 23:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=JCPlfl/19M7g9yEuVfT4KNtTIuR4KUwdAuTLvqWZvwo=; b=TeK8f9ZFu+WS9Bi8F9oHxbRmsvTSNugnHik3CLi013vo9mNU8v0e0Iqe0RUi4Yi2fk s1xBlxv+SdZMgxlMx7yqXPVouwbgxAhyQNrf+0bnuSb/bgigL/iw7ha1Fa6D9GnPr/ot eMn4+0dcuCLWTe+PVQAnfTWCWElewPt2sAZZDb3kfbkYb0OARKIMhNOA7GDnHCXvAjtp pVjXemh8m3QK5TtSehaUvQDR+i5FxNxFBR5EHH6sZ2eymTUGOY/uJ5AK8m3dS4+CPajq rleku3X5pnacSdvSealIaWpgTzLD+D6AmWmhI3XKGoUiSSHgNajDYQ5GRKyIMRff3uln jFvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=JCPlfl/19M7g9yEuVfT4KNtTIuR4KUwdAuTLvqWZvwo=; b=zDQIakBNTdEb6mwszc08bsw5q0q4/5G5VUci2VfD5rdbXfTXW1GpPISWaPCtn5UnmG lXQ2GI6cmv3Jd5TnAQmZ/zlfmtysVwdFefpiegHgjzafNH5mTscX99u+4Vmq9Qi7QN+Y BLLhUZFv3F/77Q8vx0RLxInjXl3aYJjVTQCgwOyCzaLpweBIW4UlcSs03PEknH7VY6w5 sXa3WfwuuLcR8i1+4BhxTYESfrC0wBjeTKLjeRXpgBjkkjUGiDUIz3wWEQjkgo+mhvo1 ZbdlJobSTr2sqBoMlDV/iX6GUqTdXyDeZNy5pZJnyK0G/rwuo2AdXzp+6SjZ/kl/F1ID AAMA== X-Gm-Message-State: ACgBeo0np52HDrx2ML1O9QuETILeaUL9i0z0tQ0aYPTTxV54fFxWaCwZ bGi6g0DLVhCAYcdc/6dPFPU4c93czmLiCk/tck4= X-Google-Smtp-Source: AA6agR5Uo1Q/8N6FdmCaepXsFQzV677VSToL32joz1nsTo8BDN2T0q2umivCpPdyc0XH1BC5AjGwxbhlDGFV5lBPSHw= X-Received: by 2002:a17:907:2722:b0:731:23a3:be78 with SMTP id d2-20020a170907272200b0073123a3be78mr26240212ejl.330.1662099389366; Thu, 01 Sep 2022 23:16:29 -0700 (PDT) MIME-Version: 1.0 References: <08891168-b92d-79cf-fbd6-32f02d391aae@gmail.com> In-Reply-To: <08891168-b92d-79cf-fbd6-32f02d391aae@gmail.com> From: Richard Biener Date: Fri, 2 Sep 2022 08:16:17 +0200 Message-ID: Subject: Re: [committed] c: C2x removal of unprototyped functions To: Jeff Law Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,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 server2.sourceware.org List-Id: On Thu, Sep 1, 2022 at 11:18 PM Jeff Law via Gcc-patches wrote: > > > > On 9/1/2022 1:12 PM, Joseph Myers wrote: > > C2x has completely removed unprototyped functions, so that () now > > means the same as (void) in both function declarations and > > definitions, where previously that change had been made for > > definitions only. Implement this accordingly. > > > > This is a change where GNU/Linux distribution builders might wish to > > try builds with a -std=gnu2x default to start early on getting old > > code fixed that still has () declarations for functions taking > > arguments, in advance of GCC moving to -std=gnu2x as default maybe in > > GCC 14 or 15; I don't know how much such code is likely to be in > > current use. > Happy to see this happen (dropping unprototyped funtions). IIRC older > versions of autoconf are going to generate code that runs afoul of this > problem as well. To catch these cases with a diagnostic earlier is -Wstrict-prototypes -Wold-style-declaration enough to diagnose all cases that the new standard will reject? I suppose -W*-c2x-compat are not the correct vehicle to diagnose these? Thanks, Richard. > > jeff >