| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=fIA77sVqNB7nqlxtDeBGqbdQqMJC6uLlVnvmOkXWXGj+mSlhLchY1 | |
| y5X3T5KZQAtukRch9ZN7n0UtY6tRtsin/E6FmXOjk8bPNP9iRdvGe6fhD/IpcMcP | |
| qks9sO4JZoHWV3M+HUSArRo1ZaT2A7dJ/MkQ1UhahqxNjovg8DVJvs= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=RAum2/p30Zxo0OhKElRdWpUURqg=; b=uN5Es/OSHl9iQoP0ZduqBAP+fT3G | |
| E1o+fvLiN5xAL36q2tpbWgPswDGIGn9RWqFPvyJWZh0EyzqHc3wmnfqBbUdpa/Sn | |
| qW8UbxWHgk0Sp1lJhWjHvxPV8gnCaDGECQcyDUo+OO11DpuETUzxkkyMg/RG2oKP | |
| Ia8DxIvmXRHa7E4= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Spam-SWARE-Status: | No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=mails, cygwin-patches, cygwinpatches, houder |
| X-HELO: | mout.kundenserver.de |
| Date: | Wed, 1 Aug 2018 13:00:09 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: x86_64: floating-point environment (i.e. fenv.h). BUG. |
| Message-ID: | <20180801110009.GA30124@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <3a882a7d38c52dc5a14d176f30f8340e AT xs4all DOT nl> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <3a882a7d38c52dc5a14d176f30f8340e@xs4all.nl> |
| User-Agent: | Mutt/1.9.2 (2017-12-15) |
--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Aug 1 12:22, Houder wrote:
> Hi Corinna,
>=20
> Short version of my report (as there is more to say about the implementat=
ion
> of
> "fenv") in Cygwin; this time I restrict myself to a bug in fegetenv() ).
>=20
> (Note to myself: attach STC)
>=20
> I am reporting a bug in fegetenv() in winsup/cygwin/fenv.cc. There is no
> hurry
> in repairing this bug, as "fenv" is hardly ever (never?) used by anyone.
>=20
> fegetenv() should be modified as follows:
>=20
> from:
> __asm__ volatile ("fnstenv %0" : "=3Dm" (envp->_fpu) : );
> if (use_sse)
> __asm__ volatile ("stmxcsr %0" : "=3Dm" (envp->_sse_mxcsr) : );
> return 0
>=20
> to:
> // Henri: copying glibc ...
> __asm__ volatile ("fnstenv %0\n"
> "fldenv %0" : "=3Dm" (envp->_fpu) : );
> if (use_sse)
> __asm__ volatile ("stmxcsr %0" : "=3Dm" (envp->_sse_mxcsr) : );
> return 0;
Since you know how to fix things, please just send patches to
the cygwin-patches ML.
Thanks,
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlthkrgACgkQ9TYGna5E
T6D85g//bD1NU+6l7rettbi7kqs98HKTKzjpVXxd9aOnvfVHCsrN+KBiePd18NKq
5mc8bkMITohxTVJ9T3ce7kOB6pN/rgZMjOHdADMsDqFJT+t4Nd0TD+EM9/5z0+k6
zE9laj2Nj7Kfwh+YkIk9NkAaoNUFsHOzM+i686DqAbnF2G2WcWiuvgXvV4b/qUfs
sR/BzQDB5TTp89y84da7Bp+8SmdkOUBMtcuZe8IMZT0NUqMvQJjDHJs4bfpzxBWq
kiCTal0JXnqBMBUtz21V+Wpgz2V3F9XtEX5g4C0j8aS/bN989GbEKObcIbJh0Q15
ZiunU6eKkiwOk9aq3FDWc3RzaURwYKwSi2Dw17P83NpLNvl3kJlayCM5bvVbBgqA
iWXGhUtubpO4gT63kZNTK6QScAZ9j3LpYnyeYwYSDakqlAhtOEQaDymd+imzfyhU
g6bNp7b8X3zJcjI5cdOvOvFC/s3LMbuO+zhOWAs53EH2krKerTbM/P6wZvpanHf9
DNjvhamLCykPYV81aMU0if5exQooR2H6cpBtSCm0zZWMrBmaC7n+zdTlGC2z8kjg
nqQU4jPYFZWsS9f/LBzIfK+gtO5L/XVhLK2oHfvHRXC+qnThPRbnZW9S125h4+I1
nKr5ll1xe3wS3GvbXaY42LSTyazyxHxnEpvC3SUPUsxa4uJTPM4=
=d7Jr
-----END PGP SIGNATURE-----
--45Z9DzgjV8m4Oswq--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |