| Submitter | Hans-Peter Nilsson |
|---|---|
| Date | Oct. 21, 2012, 1:04 p.m. |
| Message ID | <alpine.BSF.2.00.1210210900170.50139@dair.pair.com> |
| Download | mbox | patch |
| Permalink | /patch/192995/ |
| State | New |
| Headers | show |
Comments
Hans-Peter Nilsson <hp@bitrange.com> writes:
> I used __builtin_exit just to avoid declarations or includes;
A "return 0" would have worked just as well.
Andreas.
On Sun, 21 Oct 2012, Andreas Schwab wrote: > Hans-Peter Nilsson <hp@bitrange.com> writes: > > > I used __builtin_exit just to avoid declarations or includes; > > A "return 0" would have worked just as well. It's not the preferred method. Fail: abort(). Pass: exit(0). Don't remember where I read it, though. Brgds, H-P
Patch
Index: gcc.dg/webizer.c =================================================================== --- gcc.dg/webizer.c (revision 192651) +++ gcc.dg/webizer.c (working copy) @@ -32,4 +32,5 @@ configure2() main() { configure2(); + __builtin_exit (0); }