On 10/13/22 13:02, Arsen Arsenović wrote:
Hi,

On Friday, 7 October 2022 15:51:31 CEST Jason Merrill wrote:
        * gcc.dg/noreturn-4.c: Likewise.

I'd be inclined to drop this test.
That seems like an odd choice, why do that over using another function
for the test case? (there's nothing specific to main in this test, and
it doesn't even need to link, so using any ol' function should be okay;
see attachment)

It seemed to me that the test was specifically checking that main was treated like any other function when freestanding.

The attached patch is also v2 of the original builtin-main one submitted
earlier.  Tested on x86_64-pc-linux-gnu.  This revision excludes the
mentioned pedwarns unless hosted.

I was arguing that we don't need the new flag; there shouldn't be any need to turn it off.

Jason

Reply via email to