From 9a7b0aad2ade1e0f3d0450118861d7bc52f344c0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 29 Sep 2005 14:28:22 +0000 Subject: [PATCH] * crt0.cc: Remove PPC considerations. (WinMainCRTStartup): Add symbol as alias to mainCRTStartup. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/crt0.c | 13 ++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4d366c0ad..ad80966ee 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-09-29 Corinna Vinschen + + * crt0.cc: Remove PPC considerations. + (WinMainCRTStartup): Add symbol as alias to mainCRTStartup. + 2005-09-28 Christopher Faylor Change name from commune_recv to commune_process throughout. 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"))); +