Message ID | alpine.BSF.2.00.1210210900170.50139@dair.pair.com |
---|---|
State | New |
Headers | show |
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
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); }