From: Bruce Korb Date: Fri, 5 Jan 2001 16:28:58 +0000 (+0000) Subject: fix exit and atexit calls for vax-*-bsd systems X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15fe1a7ed1395cda8768662f5aaa4b7eee21ef78;p=gcc.git fix exit and atexit calls for vax-*-bsd systems From-SVN: r38713 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f44b557e90..7ca0a8e2f55 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-01-05 Bruce Korb + + * fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to + their x* equivalent versions for atexit-less systems + * fixinc/fixincl.c(main): do not return from main() on atexit-less + systems (or any other system any more). + 2001-01-05 Richard Earnshaw * arm.md (ldmsi_postinc): Avoid use of match_dup between input and diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c index 0e3b818cb91..3f2cb564e7c 100644 --- a/gcc/fixinc/fixincl.c +++ b/gcc/fixinc/fixincl.c @@ -184,7 +184,7 @@ Altering %5d of them\n"; # ifdef SEPARATE_FIX_PROC unlink( pz_temp_file ); # endif - return EXIT_SUCCESS; + exit (EXIT_SUCCESS); } diff --git a/gcc/fixinc/mkfixinc.sh b/gcc/fixinc/mkfixinc.sh index 5bb6a5502c9..f353d5e8be3 100755 --- a/gcc/fixinc/mkfixinc.sh +++ b/gcc/fixinc/mkfixinc.sh @@ -23,6 +23,11 @@ case $build in CFLAGS="${CFLAGS} -DSEPARATE_FIX_PROC" ;; + vax-dec-bsd* ) + CFLAGS="${CFLAGS} -Dexit=xexit -Datexit=xatexit" + MAKE="${MAKE} TARGETS=oneprocess" + ;; + * ) MAKE="${MAKE} TARGETS=oneprocess" ;;