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]
Other format: [Raw text]

Re: Refinements to alpha/xm-vms.h


On Mon, Nov 19, 2001 at 01:55:39PM -0800, Douglas B. Rupp wrote:
> Zack Weinberg writes:
> 
> > Is there a good reason to use __posix_exit and our own numbers instead
> > of exit and the values defined in stdlib.h?
> 
> We don't want to use VMS exit in gcc, it would require to many VMS
> specific changes and there's no compelling reason to do so. But
> there is a better way to incorporate the posix version.

I am not suggesting the use of SYS$EXIT.

The changes I saw appeared to imply that the CRTL provides an exit()
routine which is as specified by the C standard, and a __posix_exit()
routine which has additional Unix-y semantics.  The CRTL documentation
seems to confirm this, although I am not 100% certain.

GCC is careful to use EXIT_SUCCESS and EXIT_FAILURE (this may not be
obvious, there's a layer of macro indirection) so it should be safe to
use C89 exit() without special treatment, or return from main.

zw


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