From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 631881F453 for ; Mon, 4 Feb 2019 23:46:42 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; q=dns; s=default; b=fTgUa CdYUoH8BPx2NIlD36+iGTIFtfQ5bP+vNPTT39P4O+/HRHmzG8eVYQVIaTQeFYnEh wEESxhTgdrLN6tzVlLDwXOnvy9DyZa+veN/cpQGiBaknSQ46gSIJtQOdc4RqPn56 5OZeSIJlFb/bVoVlkeXokJIJrRGoY71pOHEP/I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; s=default; bh=NAFd0F+Yo16 MWUJdLgdk3z6IMTE=; b=hGIJbhDIkqxIXaoUVHmpFDXAg9I9D2lY9k5AuM/PA24 CIY6bBSqZrTsbDdWkbXgOlZkRoxz0IR3yjNPIK81r/xPiy4mxohg5GYFZOZBtutp yC4POV+UB4L2uDPLR/46QmUWmgReuamGtaF0vsZL8Y/gNMVX04M9NzjsQe588LSo = Received: (qmail 77546 invoked by alias); 4 Feb 2019 23:46:39 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 77529 invoked by uid 89); 4 Feb 2019 23:46:39 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: relay1.mentorg.com Date: Mon, 4 Feb 2019 23:46:31 +0000 From: Joseph Myers To: DJ Delorie CC: Jim Wilson , Subject: Re: [PATCH] RISC-V: Fix elfutils testsuite unwind failures. In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" On Mon, 4 Feb 2019, DJ Delorie wrote: > Jim Wilson writes: > > By the way, the ISO C standard allows programs to fall through the > > bottom of main. This is defined as exactly equivalent to returning 0. > > Hmm... that's new in gcc 5, so color me surprised. As that is glibc's > minimum build version, I retract my comment. It's a C99 feature that I implemented for GCC 3.0. 2000-07-27 Joseph S. Myers * c-decl.c (finish_function): Don't treat 'main' specially unless flag_hosted. In C99 mode, return 0 from 'main' unless DEFAULT_MAIN_RETURN is otherwise defined. -- Joseph S. Myers joseph@codesourcery.com