public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/35202]  New: [4.1/4.2/4.3 Regression] exp->expf transformation incorrect with -fmath-errno
@ 2008-02-14 22:03 jsm28 at gcc dot gnu dot org
  2008-02-14 22:10 ` [Bug tree-optimization/35202] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-14 22:03 UTC (permalink / raw)
  To: gcc-bugs

GCC converts calls such as (float)exp((double)f), where f is a float, into
calls to the corresponding mathematical functions for float, such as expf.

However, if the result overflows the range of float but not that of double, the
conversion is unsafe with -fmath-errno (on by default on most targets): errno
may be set by the call to the float function but not by the call to the double
function, so the compiler may be wrongly causing errno to be set for such
arguments.

This problem applies to all of the functions where the result for some float
argument overflows the range of float but not double.

(This is a regression from the compiler versions without this optimization.)


-- 
           Summary: [4.1/4.2/4.3 Regression] exp->expf transformation
                    incorrect with -fmath-errno
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-02-09  9:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 22:03 [Bug tree-optimization/35202] New: [4.1/4.2/4.3 Regression] exp->expf transformation incorrect with -fmath-errno jsm28 at gcc dot gnu dot org
2008-02-14 22:10 ` [Bug tree-optimization/35202] " pinskia at gcc dot gnu dot org
2008-02-14 23:02 ` rguenth at gcc dot gnu dot org
2008-02-14 23:10 ` joseph at codesourcery dot com
2008-02-15 15:51 ` rguenth at gcc dot gnu dot org
2008-02-15 15:54 ` rguenth at gcc dot gnu dot org
2008-02-15 21:51 ` joseph at codesourcery dot com
2008-07-04 22:34 ` [Bug tree-optimization/35202] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-01-25 18:29 ` rguenth at gcc dot gnu dot org
2009-02-09  9:35 ` rguenth at gcc dot gnu dot org
2009-02-09  9:36 ` rguenth at gcc dot gnu dot org

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).