OSDN Git Service

fix exit and atexit calls for vax-*-bsd systems
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Jan 2001 16:28:58 +0000 (16:28 +0000)
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Jan 2001 16:28:58 +0000 (16:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38713 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 7f44b55..7ca0a8e 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 0e3b818..3f2cb56 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 5bb6a55..f353d5e 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"
                ;;