public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rob1weld at aol dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/32180] Paranoia UCB GSL TestFloat libm tests fail - accuracy of recent gcc math poor
Date: Sun, 03 Jun 2007 13:16:00 -0000	[thread overview]
Message-ID: <20070603131647.3968.qmail@sourceware.org> (raw)
In-Reply-To: <bug-32180-13830@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from rob1weld at aol dot com  2007-06-03 13:16 -------
Did GSL and Paranoia with -ffloat-store for gcc 4.3.0, same result.

Instead of "the normal x87 issue" it might be a "libm issue" since it works
with Cygwin's gcc but fails with all the Linux gcc's.


Here is something that gsl configure prints:

checking for inline... inline
checking for extern inline... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for vprintf... yes
checking for _doprnt... no
...
checking for cos in -lm... yes
checking whether feenableexcept is declared... yes
checking whether fesettrapenable is declared... no
checking whether hypot is declared... yes
checking whether expm1 is declared... yes
checking whether acosh is declared... yes
checking whether asinh is declared... yes
checking whether atanh is declared... yes
checking whether ldexp is declared... yes
checking whether frexp is declared... yes
checking whether isinf is declared... yes
checking whether finite is declared... yes
checking whether isfinite is declared... no
checking whether isnan is declared... yes
checking whether log1p is declared... yes
checking for long double stdio... yes
checking for extended floating point registers... yes
checking for IEEE arithmetic interface type... gnux86
checking for FPU_SETCW... yes
checking for IEEE compiler flags... none
checking for IEEE comparisons... yes
checking for IEEE denormalized values... yes
...

When Cygwin builds gcc it answers yes to these questions:
checking ieeefp.h usability... no
checking ieeefp.h presence... no

It is good to see that GSL check the need for FPU_SETCW. 

GSL, like GCC, uses "-lm" whereas GCC's libjava builds and uses it's own
libfdlibm.a (but unfortunately _seems_ to use "-lm" in a few places).


If these programs CAN be compiled on target i686-pc-cygwin (old gcc) WITHOUT
errors and can NOT be compiled on target i686-pc-linux-gnu (newer gcc) WITHOUT
errors then NEWER gcc is not implementing it's math with the same accuracy as
the older gcc does. 

I am using the same computer to run both tests so, in theory, it would be
possible to alter GCC 4.3.0 (and 4.2.1, etc.) so that it's math results were as
accurate as they once were.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32180


  parent reply	other threads:[~2007-06-03 13:16 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-01 15:56 [Bug c/32180] New: " rob1weld at aol dot com
2007-06-01 16:16 ` [Bug target/32180] " pinskia at gcc dot gnu dot org
2007-06-03 13:16 ` rob1weld at aol dot com [this message]
2007-06-03 15:15 ` rob1weld at aol dot com
2007-06-03 16:05 ` rob1weld at aol dot com
2007-06-03 16:35 ` kargl at gcc dot gnu dot org
2007-06-03 21:12 ` jvdelisle at gcc dot gnu dot org
2007-06-04  8:58 ` rob1weld at aol dot com
2007-06-04  9:07 ` rob1weld at aol dot com
2007-06-04  9:16 ` rob1weld at aol dot com
2007-06-04 17:32 ` kargl at gcc dot gnu dot org
2007-06-05 17:22 ` rob1weld at aol dot com
2007-06-07 13:42 ` rob1weld at aol dot com
2007-06-07 13:49 ` rob1weld at aol dot com
2007-06-08  0:23 ` rob1weld at aol dot com
2007-06-12 17:50 ` rob1weld at aol dot com
2007-06-13  7:53 ` rob1weld at aol dot com
2007-06-13 11:30 ` joseph at codesourcery dot com
2007-06-13 17:53 ` kargl at gcc dot gnu dot org
2007-06-14  8:14 ` rob1weld at aol dot com
2007-06-15 21:23 ` rob1weld at aol dot com
2007-06-15 22:23 ` kargl at gcc dot gnu dot org
2007-06-15 22:43 ` joseph at codesourcery dot com
2007-06-16 18:12 ` rob1weld at aol dot com
2007-06-17 20:52 ` rob1weld at aol dot com
2010-02-20 23:43 ` manu at gcc dot gnu dot org
2010-04-12  1:54 ` rob1weld at aol dot com

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=20070603131647.3968.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).