public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: drop 32 bit considerations in crt0 code
Date: Mon, 16 May 2022 16:17:28 +0000 (GMT) [thread overview]
Message-ID: <20220516161728.1915D3948808@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=866ae2c25479ef0c9ad128265090b521b6e857c1
commit 866ae2c25479ef0c9ad128265090b521b6e857c1
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon May 16 17:24:48 2022 +0200
Cygwin: drop 32 bit considerations in crt0 code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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 terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
-/* 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 <sys/cygwin.h>
@@ -16,9 +11,6 @@ extern int main (int argc, char **argv);
void cygwin_crt0 (int (*main) (int, char **));
-#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;
extern "C"
{
-#ifdef __i386__
-char **environ;
-#endif
int _fmode;
extern char __RUNTIME_PSEUDO_RELOC_LIST__;
@@ -114,9 +111,6 @@ _cygwin_crt0_common (MainFunc f, per_process *u)
u->ctors = &__CTOR_LIST__;
u->dtors = &__DTOR_LIST__;
-#ifdef __i386__
- u->envptr = &environ;
-#endif
if (uwasnull)
_impure_ptr = u->impure_ptr; /* Use field initialized in newer DLLs. */
else
@@ -168,17 +162,10 @@ _cygwin_crt0_common (MainFunc f, per_process *u)
u->hmodule = GetModuleHandle (0);
/* variables for fork */
-#ifdef __x86_64__
u->data_start = &__data_start__;
u->data_end = &__data_end__;
u->bss_start = &__bss_start__;
u->bss_end = &__bss_end__;
-#else
- u->data_start = &_data_start__;
- u->data_end = &_data_end__;
- u->bss_start = &_bss_start__;
- u->bss_end = &_bss_end__;
-#endif
u->pseudo_reloc_start = &__RUNTIME_PSEUDO_RELOC_LIST__;
u->pseudo_reloc_end = &__RUNTIME_PSEUDO_RELOC_LIST_END__;
u->image_base = &_image_base__;
reply other threads:[~2022-05-16 16:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220516161728.1915D3948808@sourceware.org \
--to=corinna@sourceware.org \
--cc=cygwin-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).