* config/mmix/crti.asm (_init): Register _fini with atexit.
* config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
From-SVN: r51654
+2002-03-30 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * config/mmix/crti.asm (_init): Register _fini with atexit.
+ * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
+
2002-03-31 Richard Henderson <rth@redhat.com>
PR target/3997
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Contributed by Hans-Peter Nilsson <hp@bitrange.com>
This file is free software; you can redistribute it and/or modify it
TRAP 0,0,0
0H IS @
+% Register _fini to be executed as the last atexit function.
+#ifdef __MMIX_ABI_GNU__
+ GETA $231,_fini
+#else
+ GETA $1,_fini
+#endif
+ PUSHJ $0,atexit
+
.section .fini,"ax",@progbits
.global _fini
_fini:
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Contributed by Hans-Peter Nilsson <hp@bitrange.com>
This file is free software; you can redistribute it and/or modify it
.section .fini,"ax",@progbits
GETA $255,0F
PUT rJ,$255
+ POP 0,0
0H PUT rJ,$0
POP 0,0