From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id CC0283858C56 for ; Thu, 1 Sep 2022 21:18:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CC0283858C56 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-pf1-x42a.google.com with SMTP id 76so28815pfy.3 for ; Thu, 01 Sep 2022 14:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=9o5XdS5K+MkADfIPaCGAPnU9xPZp5aMlwg4Gp8VkniE=; b=XplLE92TIKaqqxyQZsx5tx1bdIzFLCu4Fg2UrfTcELLtWpFk4MtDQnKWmW2Q2vzDih OAnAfFEiR4hEB7qND6L/KqG0zl0Pu9iTX6Fwj8M7lzEztTnAA3B9joJtA5soZqn6ChyN yFRl4TlgJgXo86nEfY9KMaFaskVHLhaboXmeBBjdjhNFwnrJK4KjSbFsMpAvbf1p2LYH pcJdP6JwYkFh4OvPi+Y2lwPS9jpb8R+qYoPzDnDaLwg2LKYvn4qmprQ2tZTCjexjFf03 /6fP3wnNJj1kh0PsobKy0CaoAz0J3hJMTOa0KM+pzssH1kPCQFNojgoeH9KlwlawuaL6 lyTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=9o5XdS5K+MkADfIPaCGAPnU9xPZp5aMlwg4Gp8VkniE=; b=5Gg5xcmDTW2FMU3gUQWjeriqJixqwrMcLp1AAqMBqh73kZMF68rA+a64Vx9mXcAcgV z3uAmVqGnmH+/3fpTrVMtmtzbM9xKlgfG4Xao9smtHnG9M6bTEOyX0iG0q7+zMWZhqF4 1D5lUsAY3CdGifloz0fKVgNyK/X8S4wra5P+pZ1ZuU70nfA0/P9im9WTgcrK7F5aPjBe fljJ9cPLBDK7Tt1sKWioD8PVC7fRTdo/jYXTrSJLD+sLkUyBXC9Zu7fMseili9zdXYop Sila64StNCSvpTaEqOofkr8VYLmVC2+MPxgQwuczOK09g+p/IUHC19Hbnenrek3l4Gxi qerA== X-Gm-Message-State: ACgBeo3QqPk0Bc/gIpzZ2I4d/zqSG7JNpwg6avRLxd0rebdoem+OaGZp 9Gnko882GA3xo5JgSnCoxUoCEvt/3mE= X-Google-Smtp-Source: AA6agR51x2debtxMA97IvKF089rcqNQd6vZe6Vz3bDYU/J/8tq2NV3EHEWulLBzyhdHEHroMN7gq5g== X-Received: by 2002:aa7:8c44:0:b0:535:ed0c:f401 with SMTP id e4-20020aa78c44000000b00535ed0cf401mr22433110pfd.48.1662067082909; Thu, 01 Sep 2022 14:18:02 -0700 (PDT) Received: from [172.31.0.204] (c-73-98-188-51.hsd1.ut.comcast.net. [73.98.188.51]) by smtp.gmail.com with ESMTPSA id b20-20020aa79514000000b005327281cb8dsm52749pfp.97.2022.09.01.14.18.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Sep 2022 14:18:02 -0700 (PDT) Message-ID: <08891168-b92d-79cf-fbd6-32f02d391aae@gmail.com> Date: Thu, 1 Sep 2022 15:18:00 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [committed] c: C2x removal of unprototyped functions Content-Language: en-US To: gcc-patches@gcc.gnu.org References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,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 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. jeff