fix exit and atexit calls for vax-*-bsd systems
authorBruce Korb <bkorb@gnu.org>
Fri, 5 Jan 2001 16:28:58 +0000 (16:28 +0000)
committerBruce Korb <korbb@gcc.gnu.org>
Fri, 5 Jan 2001 16:28:58 +0000 (16:28 +0000)
From-SVN: r38713

gcc/ChangeLog
gcc/fixinc/fixincl.c
gcc/fixinc/mkfixinc.sh

index 7f44b557e9094dbbabf86c5fd408fe064a5b86b2..7ca0a8e2f5582939facc7041c59de8cd6a56bd21 100644 (file)
@@ -1,3 +1,10 @@
+2001-01-05  Bruce Korb  <bkorb@gnu.org>
+
+       * 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  <rearnsha@arm.com>
 
        * arm.md (ldmsi_postinc): Avoid use of match_dup between input and
index 0e3b818cb9166564dc37268eafda939bd84537d8..3f2cb564e7c2ed70dd0e1cd4fce3cca0435bbd38 100644 (file)
@@ -184,7 +184,7 @@ Altering  %5d of them\n";
 # ifdef SEPARATE_FIX_PROC
   unlink( pz_temp_file );
 # endif
-  return EXIT_SUCCESS;
+  exit (EXIT_SUCCESS);
 }
 
 
index 5bb6a5502c9daca72663f566c0419782d8f5ff9e..f353d5e8be3eada18eb9af2f3dc41adf4bfbccc5 100755 (executable)
@@ -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"
                ;;