This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]