* crt0.c (mainCRTStartup): Move call to _feinitialise from here...
* dcrt0.cc (_dll_crt0): ...to here.
This commit is contained in:
parent
d2948a681d
commit
b532ee08bc
@ -1,3 +1,8 @@
|
|||||||
|
2011-03-16 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* crt0.c (mainCRTStartup): Move call to _feinitialise from here...
|
||||||
|
* dcrt0.cc (_dll_crt0): ...to here.
|
||||||
|
|
||||||
2011-03-16 Corinna Vinschen <corinna@vinschen.de>
|
2011-03-16 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* winver.rc: Fix copyright dates.
|
* winver.rc: Fix copyright dates.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* crt0.c
|
/* crt0.c
|
||||||
|
|
||||||
Copyright 2001, 2005, 2010 Red Hat, Inc.
|
Copyright 2001, 2005, 2010, 2011 Red Hat, Inc.
|
||||||
|
|
||||||
This software is a copyrighted work licensed under the terms of the
|
This software is a copyrighted work licensed under the terms of the
|
||||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||||
@ -13,7 +13,6 @@ details. */
|
|||||||
|
|
||||||
#include "winlean.h"
|
#include "winlean.h"
|
||||||
#include <sys/cygwin.h>
|
#include <sys/cygwin.h>
|
||||||
#include "fenv.h"
|
|
||||||
|
|
||||||
extern int main (int argc, char **argv);
|
extern int main (int argc, char **argv);
|
||||||
|
|
||||||
@ -25,7 +24,6 @@ mainCRTStartup ()
|
|||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
(void)__builtin_return_address(1);
|
(void)__builtin_return_address(1);
|
||||||
asm volatile ("andl $-16,%%esp" ::: "%esp");
|
asm volatile ("andl $-16,%%esp" ::: "%esp");
|
||||||
_feinitialise ();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cygwin_crt0 (main);
|
cygwin_crt0 (main);
|
||||||
|
@ -35,6 +35,7 @@ details. */
|
|||||||
#include "tls_pbuf.h"
|
#include "tls_pbuf.h"
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
#include "cygxdr.h"
|
#include "cygxdr.h"
|
||||||
|
#include "fenv.h"
|
||||||
#include "ntdll.h"
|
#include "ntdll.h"
|
||||||
|
|
||||||
#define MAX_AT_FILE_LEVEL 10
|
#define MAX_AT_FILE_LEVEL 10
|
||||||
@ -980,6 +981,9 @@ __cygwin_exit_return: \n\
|
|||||||
extern "C" void __stdcall
|
extern "C" void __stdcall
|
||||||
_dll_crt0 ()
|
_dll_crt0 ()
|
||||||
{
|
{
|
||||||
|
#ifdef __i386__
|
||||||
|
_feinitialise ();
|
||||||
|
#endif
|
||||||
main_environ = user_data->envptr;
|
main_environ = user_data->envptr;
|
||||||
if (in_forkee)
|
if (in_forkee)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user