From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 3F1883858C83 for ; Fri, 14 Oct 2022 15:17:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3F1883858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665760630; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7X9DkLAjNmouhzwQJYDMSkve2PALg8tQTEBg16dprHk=; b=aL3ls4/m6YpPuUdC8+cpR2oRUOzRMlnu4tlpvbtUsoQ7DpypBUl/LETZCH3IreunYXk7my GawoZ3YSTUpYIzt3XKgeoxA4MgzKYoIJF+uV1KYbkT+3ihj1vUjWclTGN1EuueSXl+Apyn xSQAqKUDggrr927dLzaLtmfKpTbocYY= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-50-2lOdjFkgPba9ifi_29oG0g-1; Fri, 14 Oct 2022 11:17:08 -0400 X-MC-Unique: 2lOdjFkgPba9ifi_29oG0g-1 Received: by mail-qk1-f198.google.com with SMTP id bj1-20020a05620a190100b006eececec791so1493443qkb.15 for ; Fri, 14 Oct 2022 08:17:08 -0700 (PDT) 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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7X9DkLAjNmouhzwQJYDMSkve2PALg8tQTEBg16dprHk=; b=IPDzAhtigdoUCKGZNKg1VldYzOb+I0gBjng9aWZupF97YHentj9LvwVRbJS0VFyqZ/ YRwmJQDbCLwNhY9FTkTORAmHJu84GWqOn9cVpU7aesJeBIjdDV3m/Xy/J5OqNxDvCCq/ ra1Cw0gHQWAshPkFLlo4OXGtsn0IiOEHkW9k1kLjOBb8KlL9Tgzpmn1ehbP9+zhCMzDn 27aPYxCvXx7lL1Q0pEC7x/mk3aa53G+kx4smQp/9vlVlHcF5b4wroZMzc6AWGuMib5Kj bc0bcM7uGRCmHIxgSxB6u2qLngWg8s6EGpUaDS3EJht0evnGpWokJqWgrB5SHjDePIye 6VYQ== X-Gm-Message-State: ACrzQf3yOChnehiClanhHOZiD0CTMj8AyG6otGgFQHeFAoMyZxJp4qJS SjCKKotsv7LxsSVc4a+/n0E3bm/A9rj+9oLCV18RoNPt6zoo6U7vLtTCd2qRFv70RBeBxpqHmAH qThEdYpRRnBvWM02KDQ== X-Received: by 2002:ac8:4e43:0:b0:39a:d8b6:ad15 with SMTP id e3-20020ac84e43000000b0039ad8b6ad15mr4712147qtw.652.1665760628379; Fri, 14 Oct 2022 08:17:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM748Ouzmdscf78ojW0eB8AZIe8XtPNkoUMxBtF95e+1voL9n8xpNewZTVKiJ6uOPkW1ZzcHkQ== X-Received: by 2002:ac8:4e43:0:b0:39a:d8b6:ad15 with SMTP id e3-20020ac84e43000000b0039ad8b6ad15mr4712121qtw.652.1665760628078; Fri, 14 Oct 2022 08:17:08 -0700 (PDT) Received: from [192.168.1.101] (130-44-159-43.s15913.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [130.44.159.43]) by smtp.gmail.com with ESMTPSA id ck7-20020a05622a230700b0035d5e5660cbsm2199556qtb.59.2022.10.14.08.17.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Oct 2022 08:17:07 -0700 (PDT) Message-ID: <63ab1032-6ab6-7f77-2f78-7c48370b4bf7@redhat.com> Date: Fri, 14 Oct 2022 11:17:06 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: Handling of main() function for freestanding To: =?UTF-8?Q?Arsen_Arsenovi=c4=87?= , Jonathan Wakely , gcc-patches@gcc.gnu.org Cc: "gcc@gcc.gnu.org" , Jakub Jelinek , "Joseph S. Myers" , Marek Polacek References: <4964626.imyG0pze7u@bstg> <5b636835-20af-2372-75d2-92e31a3393ed@redhat.com> <1860348.8SKhNGa0Zi@bstg> From: Jason Merrill In-Reply-To: <1860348.8SKhNGa0Zi@bstg> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,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: On 10/14/22 06:04, Arsen Arsenović wrote: > On Thursday, 13 October 2022 23:16:02 CEST Jason Merrill wrote: >> I liked in the previous version that you checked the return type of >> main when !flag_hosted, here and in c_missing_noreturn_ok_p. Let's >> bring that back. > Ah, right; I forgot about that. What do you think of this? Looks good to me, but a C maintainer should also approve it. Jason