]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cygwin.din (_impure_ptr): Don't export.
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 16 Sep 2004 09:14:29 +0000 (09:14 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 16 Sep 2004 09:14:29 +0000 (09:14 +0000)
(reent_data): Export.
* lib/_cygwin_crt0_common.cc (_impure_ptr): Drop entirely.  Don't
initialize _impure_ptr or u->impure_ptr_ptr.

winsup/cygwin/ChangeLog
winsup/cygwin/cygwin.din
winsup/cygwin/lib/_cygwin_crt0_common.cc

index 54dcedca6bba5d62227cc6ac74617612c0c0948d..3cca37b5e8780092349860a8da994fa4d692c585 100644 (file)
@@ -1,3 +1,10 @@
+2004-09-16  Corinna Vinschen  <corinna@vinschen.de>
+
+       * cygwin.din (_impure_ptr): Don't export.
+       (reent_data): Export.
+       * lib/_cygwin_crt0_common.cc (_impure_ptr): Drop entirely.  Don't
+       initialize _impure_ptr or u->impure_ptr_ptr.
+
 2004-09-15  Corinna Vinschen  <corinna@vinschen.de>
 
        * cygwin.din (_impure_ptr): Export.
index bf39f4b2262877f3b703c54d63c76e2f0cdfb801..a849f41b146253889010bc41d15f54f0c095dee9 100644 (file)
@@ -12,7 +12,6 @@ __rcmd_errstr DATA
 _check_for_executable DATA
 _ctype_ DATA
 _daylight DATA
-_impure_ptr DATA
 _sys_errlist DATA
 sys_errlist = _sys_errlist DATA
 _sys_nerr DATA
@@ -25,6 +24,7 @@ opterr DATA
 optind DATA
 optopt DATA
 optreset DATA
+reent_data DATA
 _alloca NOSIGFE
 dll_entry@12 NOSIGFE
 __assert SIGFE
index 935b84f3160edf838b049c54116625bcbb87deb2..51be98003176ed0356dbdb1f43c19b3e9789d42e 100644 (file)
@@ -15,9 +15,6 @@ details. */
 #include <reent.h>
 #include <stdlib.h>
 
-/* Avoid an info message from linker when linking applications. */
-extern __declspec(dllimport) struct _reent *_impure_ptr;
-
 #undef environ
 
 extern "C"
@@ -63,10 +60,6 @@ _cygwin_crt0_common (MainFunc f, per_process *u)
   u->ctors = &__CTOR_LIST__;
   u->dtors = &__DTOR_LIST__;
   u->envptr = &environ;
-  if (uwasnull)
-    _impure_ptr = u->impure_ptr;       /* Use field initialized in newer DLLs. */
-  else
-    u->impure_ptr_ptr = &_impure_ptr;  /* Older DLLs need this. */
 
   u->forkee = 0;                       /* This should only be set in dcrt0.cc
                                           when the process is actually forked */
This page took 0.036093 seconds and 5 git commands to generate.