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:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-29 18:28:22 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-09-29 18:28:22 +0400
commit9a7b0aad2ade1e0f3d0450118861d7bc52f344c0 (patch)
tree20a793183099d32b76f0b24512496656f9734a02 /winsup/cygwin/crt0.c
parent6a33f745c0c9a3b0fb783ad04c21fe3e961b7846 (diff)
* crt0.cc: Remove PPC considerations.
(WinMainCRTStartup): Add symbol as alias to mainCRTStartup.
Diffstat (limited to 'winsup/cygwin/crt0.c')
-rw-r--r--winsup/cygwin/crt0.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/winsup/cygwin/crt0.c b/winsup/cygwin/crt0.c
index 48cafd5e1..1421f6566 100644
--- a/winsup/cygwin/crt0.c
+++ b/winsup/cygwin/crt0.c
@@ -1,19 +1,11 @@
/* crt0.c.
- Copyright 2001 Red Hat, Inc.
+ Copyright 2001, 2005 Red Hat, Inc.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
-#ifdef __PPC__
-/* For the PowerPC, we want to make this function have its structured
- exception table exception function point to something we control. */
-
-extern void __cygwin_exception_handler();
-extern void mainCRTStartup(void) __attribute__((__exception__(__cygwin_exception_handler)));
-#endif
-
/* In the following ifdef'd i386 code, the FPU precision is set to 80 bits
and all FPU exceptions are masked. The former is needed to make long
doubles work correctly. The latter causes the FPU to generate NaNs and
@@ -58,3 +50,6 @@ mainCRTStartup ()
cygwin_crt0 (main);
}
+
+void WinMainCRTStartup(void) __attribute__ ((alias("mainCRTStartup")));
+