This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

addition to c99status



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>

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