This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
addition to c99status
- To: gcc-patches at gcc dot gnu dot org
- Subject: addition to c99status
- From: Geoffrey Keating <geoffk at thief dot cygnus dot com>
- Date: Tue, 2 Jan 2001 16:52:14 -0800
Sometime between 1997 and 1999, someone changed the (then-draft) ISO C
standard so that
int main(void)
{
}
became well-defined: it behaves the same as if it had said 'return
0;'. GCC doesn't implement this yet, and so I propose this patch...
--
Geoff Keating <geoffk@redhat.com>
Index: c99status.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/c99status.html,v
retrieving revision 1.17
diff -c -r1.17 c99status.html
*** c99status.html 2000/11/20 00:20:26 1.17
--- c99status.html 2001/01/03 00:44:24
***************
*** 278,283 ****
--- 278,288 ----
<td></td><td></td>
</tr>
+ <tr><td><em><code>main</code> returns 0 by falling off the end</em></td>
+ <td></td><td></td>
+ <td></td><td>Missing</td>
+ </tr>
+
<tr><th>Feature</th>
<th>Library Issue</th>
<th>Done</th>