about summary refs log tree commit diff
path: root/stdlib/on_exit.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
commita334319f6530564d22e775935d9c91663623a1b4 (patch)
treeb5877475619e4c938e98757d518bb1e9cbead751 /stdlib/on_exit.c
parent0ecb606cb6cf65de1d9fc8a919bceb4be476c602 (diff)
downloadglibc-a334319f6530564d22e775935d9c91663623a1b4.tar.gz
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.xz
glibc-a334319f6530564d22e775935d9c91663623a1b4.zip
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Diffstat (limited to 'stdlib/on_exit.c')
-rw-r--r--stdlib/on_exit.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/stdlib/on_exit.c b/stdlib/on_exit.c
index e777604084..d98fbb3a86 100644
--- a/stdlib/on_exit.c
+++ b/stdlib/on_exit.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -18,8 +18,6 @@
 
 #include <stdlib.h>
 #include "exit.h"
-#include <atomic.h>
-#include <sysdep.h>
 
 /* Register a function to be called by exit.  */
 int
@@ -30,13 +28,9 @@ __on_exit (void (*func) (int status, void *arg), void *arg)
   if (new == NULL)
     return -1;
 
-#ifdef PTR_MANGLE
-  PTR_MANGLE (func);
-#endif
+  new->flavor = ef_on;
   new->func.on.fn = func;
   new->func.on.arg = arg;
-  atomic_write_barrier ();
-  new->flavor = ef_on;
   return 0;
 }
 weak_alias (__on_exit, on_exit)