From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) by sourceware.org (Postfix) with ESMTPS id 8C6FF385416C; Fri, 21 Oct 2022 10:33:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8C6FF385416C Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4Mv15C3r1jz9sPl; Fri, 21 Oct 2022 12:33:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1666348383; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cG4UHycZmYvmLBYMC6JKReSj/7utLBZhfXpjfIs4Wg0=; b=gG6T6Uc6z5ewJ2e3hTHAIkSJkhxPGYkq1K73y9yha+NE9CFyFN8zqCqRzU43izcYHOX8rD rQNr3QP6yaRdyRP9OeR0P+PgYNbHxzeXfT5Syok4Lfa44bA7fXii8MTthd05UQ5xCit69t FqGFGDkGjwDtH8TCWZ0zhVNfpiTuc25gfb4c4cBZrl6gmSuI7DF02IcrX6U86nH33y5Z1Z ToNPLl4g8e5n/HB7f82c44wAJMTzEcZZRcRRLjIes1zrQmbXAEWldBJC2lSa/PC1E4xHzM jEmWZkRbDHLQt6Ti1JKQaYnqeGeJde5QdkGqrel9Rdpf0yjW17azObee7bV2iQ== From: Arsen =?utf-8?B?QXJzZW5vdmnEhw==?= To: gcc-patches@gcc.gnu.org Cc: Jonathan Wakely , Jakub Jelinek , "gcc@gcc.gnu.org" , "Joseph S. Myers" , Arsen =?utf-8?B?QXJzZW5vdmnEhw==?= Subject: Ping (c,c++): Handling of main() function for freestanding Date: Fri, 21 Oct 2022 12:33:01 +0200 Message-ID: <6289278.W5v1pFC7tW@bstg> In-Reply-To: <1860348.8SKhNGa0Zi@bstg> References: <5b636835-20af-2372-75d2-92e31a3393ed@redhat.com> <1860348.8SKhNGa0Zi@bstg> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9264589.OZXWOojcBX"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_INFOUSMEBIZ,KAM_SHORT,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP 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: --nextPart9264589.OZXWOojcBX Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Arsen =?utf-8?B?QXJzZW5vdmnEhw==?= To: gcc-patches@gcc.gnu.org Subject: Ping (c,c++): Handling of main() function for freestanding Date: Fri, 21 Oct 2022 12:32:32 +0200 Message-ID: <6289278.W5v1pFC7tW@bstg> In-Reply-To: <1860348.8SKhNGa0Zi@bstg> MIME-Version: 1.0 Ping on this patch. https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603574.html =46or context, see the rest of this thread. TL;DR is that `int main'=20 should implicitly return 0 on freestanding, without the other burdens of=20 main (hosted should remain unchanged, as well as non-int `main's). This=20 applies to both the C and C++ frontends. =2D-=20 Arsen Arsenovi=C4=87 --nextPart9264589.OZXWOojcBX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCY1J1QF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MwAKCRBSwpQwHqLE k6D0AP9f19kjGatwf66WHG1NXXvx11RyUQ8yCpyxj6eGTyTutQD/aFGZcNJ19VAx aUfwj0IuDnmiVaSFBiflQ7/EUXWKkww= =mrzD -----END PGP SIGNATURE----- --nextPart9264589.OZXWOojcBX--