Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-09-16 00:50:08 +0400
committerJeff Johnston <jjohnstn@redhat.com>2004-09-16 00:50:08 +0400
commit51d4a7eae1d1ad375146e43b74e0241ff774adea (patch)
tree7b86088578c5a698e2ce6a1dcf241c9ab5e33b0d /newlib/libc/stdlib
parent1dcd520bb878cfd02e72f31b9e2d8ccdd3073a2c (diff)
2004-09-15 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Reverting 2004-09-14 change as fix has occurred on Cygwin side. * configure.in: Ditto. * libc/configure.in: Ditto. * libc/sys/configure.in: Ditto. * configure: Ditto. * libc/configure: Ditto. * libc/sys/configure: Ditto. * libc/include/sys/reent.h: Ditto. * libc/stdlib/__atexit.c: Ditto. * libc/stdlib/__call_atexit.c: Ditto. * libc/stdlib/cxa_atexit.c: Ditto. * libc/stdlib/cxa_finalize.c: Ditto. * libc/sys/cygwin/Makefile.am: Removed again. * libc/sys/cygwin/Makefile.in: Ditto. * libc/sys/cygwin/aclocal.m4: Ditto. * libc/sys/cygwin/configure: Ditto. * libc/sys/cygwin/configure.in: Ditto. * libc/sys/cygwin/dummy.c: Ditto. * libc/sys/cygwin/sys/reent.h: Ditto.
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/__atexit.c6
-rw-r--r--newlib/libc/stdlib/__call_atexit.c4
-rw-r--r--newlib/libc/stdlib/cxa_atexit.c3
-rw-r--r--newlib/libc/stdlib/cxa_finalize.c4
4 files changed, 0 insertions, 17 deletions
diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c
index 310b69174..04f494738 100644
--- a/newlib/libc/stdlib/__atexit.c
+++ b/newlib/libc/stdlib/__atexit.c
@@ -48,10 +48,8 @@ _DEFUN (__register_exitproc,
_GLOBAL_REENT->_atexit = p;
#ifndef _REENT_SMALL
p->_on_exit_args._fntypes = 0;
-#ifdef __REENT_HAS_CXA_SUPPORT
p->_on_exit_args._is_cxa = 0;
#endif
-#endif
}
if (type != __et_atexit)
@@ -70,20 +68,16 @@ _DEFUN (__register_exitproc,
}
args->_fntypes = 0;
args->_is_cxa = 0;
-#ifdef __REENT_HAS_CXA_SUPPORT
p->_on_exit_args_ptr = args;
-#endif
}
#else
args = &p->_on_exit_args;
#endif
args->_fnargs[p->_ind] = arg;
args->_fntypes |= (1 << p->_ind);
-#ifdef __REENT_HAS_CXA_SUPPORT
args->_dso_handle[p->_ind] = d;
if (type == __et_cxa)
args->_is_cxa |= (1 << p->_ind);
-#endif
}
p->_fns[p->_ind++] = fn;
#ifndef __SINGLE_THREAD__
diff --git a/newlib/libc/stdlib/__call_atexit.c b/newlib/libc/stdlib/__call_atexit.c
index 8e91770c2..cea569ff4 100644
--- a/newlib/libc/stdlib/__call_atexit.c
+++ b/newlib/libc/stdlib/__call_atexit.c
@@ -36,11 +36,9 @@ _DEFUN (__call_exitprocs, (code, d),
{
i = 1 << n;
-#ifdef __REENT_HAS_CXA_SUPPORT
/* Skip functions not from this dso. */
if (d && (!args || args->_dso_handle[n] != d))
continue;
-#endif
/* Remove the function now to protect against the
function calling exit recursively. */
@@ -57,10 +55,8 @@ _DEFUN (__call_exitprocs, (code, d),
/* Call the function. */
if (!args || (args->_fntypes & i) == 0)
fn ();
-#ifdef __REENT_HAS_CXA_SUPPORT
else if ((args->_is_cxa & i) == 0)
(*((void (*)(int, _PTR)) fn))(code, args->_fnargs[n]);
-#endif
else
(*((void (*)(_PTR)) fn))(args->_fnargs[n]);
}
diff --git a/newlib/libc/stdlib/cxa_atexit.c b/newlib/libc/stdlib/cxa_atexit.c
index 9b73372d6..8c39236de 100644
--- a/newlib/libc/stdlib/cxa_atexit.c
+++ b/newlib/libc/stdlib/cxa_atexit.c
@@ -8,7 +8,6 @@
#include <sys/lock.h>
#include "atexit.h"
-#ifdef __REENT_HAS_CXA_SUPPORT
/*
* Register a function to be performed at exit or DSO unload.
*/
@@ -22,5 +21,3 @@ _DEFUN (__cxa_atexit,
{
return __register_exitproc (__et_cxa, (void (*)(void)) fn, arg, d);
}
-
-#endif /* __REENT_HAS_CXA_SUPPORT */
diff --git a/newlib/libc/stdlib/cxa_finalize.c b/newlib/libc/stdlib/cxa_finalize.c
index 9bdbed7af..17d0526a7 100644
--- a/newlib/libc/stdlib/cxa_finalize.c
+++ b/newlib/libc/stdlib/cxa_finalize.c
@@ -7,8 +7,6 @@
#include <reent.h>
#include "atexit.h"
-#ifdef __REENT_HAS_CXA_SUPPORT
-
/*
* Call registered exit handlers. If D is null then all handlers are called,
* otherwise only the handlers from that DSO are called.
@@ -20,5 +18,3 @@ _DEFUN (__cxa_finalize, (d),
{
__call_exitprocs (0, d);
}
-
-#endif /* __REENT_HAS_CXA_SUPPORT */