From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 21871392B8D0; Fri, 21 Oct 2022 21:02:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 21871392B8D0 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.95,203,1661846400"; d="scan'208";a="85195305" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 21 Oct 2022 13:02:07 -0800 IronPort-SDR: itzLg4XHe3ZCM+3me3A673QVQfthU5MsJ66R2zagtDfSs9/1RNhLRYQCW1q5B/ZQ+AIkmJzUoo oXLz70VXDRQYquRcd4nI7AK2H9fYU2sHq01bXeP5q4iK67IJIxDrRKjr7tdrUV7rSqnJj0kjUF gx6lLqTo9Og7rTMCshM0dXW+X64kxPOyRorzCcYQ4oTKtONbxxzeJRamGqxZkfDy8H/5e4QQ1L rfy6cVnjoomX4iahAPNpM62yQr3MT4wtjQA7WuVyXJrT8d51v2uq+SSfryydROBucxXDDPJIEP dOQ= Date: Fri, 21 Oct 2022 21:02:02 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: =?ISO-8859-2?Q?Arsen_Arsenovi=E6?= CC: , Jakub Jelinek , "gcc@gcc.gnu.org" Subject: Re: Ping (c,c++): Handling of main() function for freestanding In-Reply-To: <6289278.W5v1pFC7tW@bstg> Message-ID: References: <5b636835-20af-2372-75d2-92e31a3393ed@redhat.com> <1860348.8SKhNGa0Zi@bstg> <6289278.W5v1pFC7tW@bstg> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-2136569351-1666386122=:150427" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3110.5 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: ---1152306461-2136569351-1666386122=:150427 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT On Fri, 21 Oct 2022, Arsen Arsenović via Gcc wrote: > Ping on this patch. > > https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603574.html > > For context, see the rest of this thread. TL;DR is that `int main' > should implicitly return 0 on freestanding, without the other burdens of > main (hosted should remain unchanged, as well as non-int `main's). This > applies to both the C and C++ frontends. I have no objections to the C changes. -- Joseph S. Myers joseph@codesourcery.com ---1152306461-2136569351-1666386122=:150427--