aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-03-11 13:28:27 +0100
committerCorinna Vinschen <corinna@vinschen.de>2020-03-11 13:45:58 +0100
commit3bb346d5937079c3dcbc75d113f81d1f80ee28ef (patch)
tree0ad4616c15086180632d816edd463ceb2fc47b6c /winsup/cygwin/dcrt0.cc
parentd2ef2331f9ec4cc6510cab5cd540bb3c3c863ca8 (diff)
downloadnewlib-3bb346d5937079c3dcbc75d113f81d1f80ee28ef.zip
newlib-3bb346d5937079c3dcbc75d113f81d1f80ee28ef.tar.gz
newlib-3bb346d5937079c3dcbc75d113f81d1f80ee28ef.tar.bz2
Cygwin: fix formatting: collapse whitespace-only lines
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 86ab725..5d8b4b7 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -1220,7 +1220,7 @@ do_exit (int status)
a reproducible value which could also be easily evaluated in cygwin_atexit.
However, when building C++ applications with -fuse-cxa-atexit, G++ creates
calls to __cxa_atexit using the *address* of __dso_handle as DSO handle.
-
+
So what we do here is this: A call to __cxa_atexit from the application
actually calls cygwin__cxa_atexit. From dso_handle (which is either
&__dso_handle, or __dso_handle == ImageBase or NULL) we fetch the dll
@@ -1265,7 +1265,7 @@ cygwin_atexit (void (*fn) (void))
Workaround: If dlls.find fails, try to find the dll entry of the DLL
containing fn. If that works, proceed by calling __cxa_atexit, otherwise
call atexit.
-
+
This *should* be sufficiently safe. Ultimately, new applications will
use the statically linked atexit function though, as outlined above. */
if (!d)