[PATCH] RISC-V: Fix elfutils testsuite unwind failures.

Joseph Myers joseph@codesourcery.com
Mon Feb 4 23:46:00 GMT 2019


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



More information about the Libc-alpha mailing list