This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] RISC-V: Fix elfutils testsuite unwind failures.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: Jim Wilson <jimw at sifive dot com>, <libc-alpha at sourceware dot org>
- Date: Mon, 4 Feb 2019 23:46:31 +0000
- Subject: Re: [PATCH] RISC-V: Fix elfutils testsuite unwind failures.
- References: <xntvhjdt7l.fsf@greed.delorie.com>
On Mon, 4 Feb 2019, DJ Delorie wrote:
> Jim Wilson <jimw@sifive.com> 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 <jsm28@cam.ac.uk>
* 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