+Fri Nov 21 10:13:11 1997 Robert Lipe (robertl@dgii.com)
+
+ * i386/sco5.h (HAVE_ATEXIT): Revert last change.
+
Thu Nov 20 16:11:50 1997 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_emit_set_const_1): Handle narrow hosts better.
# if defined (_SCO_ELF)
# define OBJECT_FORMAT_ELF
+# define HAVE_ATEXIT 1
# define INIT_SECTION_ASM_OP INIT_SECTION_ASM_OP_ELF
# define FINI_SECTION_ASM_OP FINI_SECTION_ASM_OP_ELF
# define DTORS_SECTION_ASM_OP DTORS_SECTION_ASM_OP_ELF
-// prms-id: 9732
-
-int count;
-int bail = 0;
-
-struct base {
- base () { ++count; }
- ~base () { --count; }
- base(const base&o) { ++count; }
-};
-
-class D {
-public:
- ~D() {
- if (bail++)
- {
- // On some Linux boxes, we run the dtor for d twice,
- // once before exit, and once after!
- abort ();
- }
- else
- {
- if (count != 0)
- exit (1);
- exit (0);
- }
- }
-} d;
-
-base base_object;
-
-base base_returning_function ();
-
-const base& base_ref = base_returning_function ();
-
-int main () {
-}
-
-base base_returning_function () {
- base local_base_object;
- return local_base_object;
-}
+ _exit (1);
+ _exit (0);