From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 1915D3948808; Mon, 16 May 2022 16:17:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1915D3948808 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: drop 32 bit considerations in crt0 code X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 1a367220addd52e040249e0467111c4fb2674fba X-Git-Newrev: 866ae2c25479ef0c9ad128265090b521b6e857c1 Message-Id: <20220516161728.1915D3948808@sourceware.org> Date: Mon, 16 May 2022 16:17:28 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2022 16:17:28 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D866ae2c2547= 9ef0c9ad128265090b521b6e857c1 commit 866ae2c25479ef0c9ad128265090b521b6e857c1 Author: Corinna Vinschen Date: Mon May 16 17:24:48 2022 +0200 Cygwin: drop 32 bit considerations in crt0 code =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/crt0.c | 8 -------- winsup/cygwin/lib/_cygwin_crt0_common.cc | 13 ------------- 2 files changed, 21 deletions(-) diff --git a/winsup/cygwin/crt0.c b/winsup/cygwin/crt0.c index ec7959a0f..1096e5897 100644 --- a/winsup/cygwin/crt0.c +++ b/winsup/cygwin/crt0.c @@ -4,11 +4,6 @@ This software is a copyrighted work licensed under the ter= ms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ =20 -/* 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 - Infinities instead of signals for certain operations. */ - #include "winlean.h" #include =20 @@ -16,9 +11,6 @@ extern int main (int argc, char **argv); =20 void cygwin_crt0 (int (*main) (int, char **)); =20 -#ifdef __i386__ -__attribute__ ((force_align_arg_pointer)) -#endif void mainCRTStartup () { diff --git a/winsup/cygwin/lib/_cygwin_crt0_common.cc b/winsup/cygwin/lib/_= cygwin_crt0_common.cc index 025e2f2ee..c9e61ea63 100644 --- a/winsup/cygwin/lib/_cygwin_crt0_common.cc +++ b/winsup/cygwin/lib/_cygwin_crt0_common.cc @@ -61,9 +61,6 @@ extern int __dynamically_loaded; =20 extern "C" { -#ifdef __i386__ -char **environ; -#endif int _fmode; =20 extern char __RUNTIME_PSEUDO_RELOC_LIST__; @@ -114,9 +111,6 @@ _cygwin_crt0_common (MainFunc f, per_process *u) =20 u->ctors =3D &__CTOR_LIST__; u->dtors =3D &__DTOR_LIST__; -#ifdef __i386__ - u->envptr =3D &environ; -#endif if (uwasnull) _impure_ptr =3D u->impure_ptr; /* Use field initialized in newer DLLs.= */ else @@ -168,17 +162,10 @@ _cygwin_crt0_common (MainFunc f, per_process *u) u->hmodule =3D GetModuleHandle (0); =20 /* variables for fork */ -#ifdef __x86_64__ u->data_start =3D &__data_start__; u->data_end =3D &__data_end__; u->bss_start =3D &__bss_start__; u->bss_end =3D &__bss_end__; -#else - u->data_start =3D &_data_start__; - u->data_end =3D &_data_end__; - u->bss_start =3D &_bss_start__; - u->bss_end =3D &_bss_end__; -#endif u->pseudo_reloc_start =3D &__RUNTIME_PSEUDO_RELOC_LIST__; u->pseudo_reloc_end =3D &__RUNTIME_PSEUDO_RELOC_LIST_END__; u->image_base =3D &_image_base__;