public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56651] New: sin() and tan() has different values during compile time and run time.
@ 2013-03-18  9:49 sergey.s at samsung dot com
  2013-03-18  9:51 ` [Bug c/56651] " sergey.s at samsung dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sergey.s at samsung dot com @ 2013-03-18  9:49 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56651
           Summary: sin() and tan() has different values during compile
                    time and run time.
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sergey.s@samsung.com


Created attachment 29689
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29689
Source code with sine test

Sources with test cases are attached.
Current output:
Compile-time value of sine is -2.44929359829470641e-16
Runtime value of sine is -2.44921270764475452e-16

Compile-time value of tangent is -1.63312393531953700e+16
Runtime value of tangent is -1.63317787283838440e+16


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

* [Bug c/56651] sin() and tan() has different values during compile time and run time.
  2013-03-18  9:49 [Bug c/56651] New: sin() and tan() has different values during compile time and run time sergey.s at samsung dot com
@ 2013-03-18  9:51 ` sergey.s at samsung dot com
  2013-03-18 10:58 ` [Bug c/56651] sin() and tan() have " steven at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: sergey.s at samsung dot com @ 2013-03-18  9:51 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from sergey.s at samsung dot com 2013-03-18 09:50:25 UTC ---
Created attachment 29690
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29690
Source code with tangent test


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

* [Bug c/56651] sin() and tan() have different values during compile time and run time.
  2013-03-18  9:49 [Bug c/56651] New: sin() and tan() has different values during compile time and run time sergey.s at samsung dot com
  2013-03-18  9:51 ` [Bug c/56651] " sergey.s at samsung dot com
@ 2013-03-18 10:58 ` steven at gcc dot gnu.org
  2013-03-18 11:07 ` sergey.s at samsung dot com
  2013-03-18 11:29 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu.org @ 2013-03-18 10:58 UTC (permalink / raw)
  To: gcc-bugs


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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-03-18
     Ever Confirmed|0                           |1

--- Comment #2 from Steven Bosscher <steven at gcc dot gnu.org> 2013-03-18 10:57:38 UTC ---
For what target is this?


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

* [Bug c/56651] sin() and tan() have different values during compile time and run time.
  2013-03-18  9:49 [Bug c/56651] New: sin() and tan() has different values during compile time and run time sergey.s at samsung dot com
  2013-03-18  9:51 ` [Bug c/56651] " sergey.s at samsung dot com
  2013-03-18 10:58 ` [Bug c/56651] sin() and tan() have " steven at gcc dot gnu.org
@ 2013-03-18 11:07 ` sergey.s at samsung dot com
  2013-03-18 11:29 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: sergey.s at samsung dot com @ 2013-03-18 11:07 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from sergey.s at samsung dot com 2013-03-18 11:06:55 UTC ---
(In reply to comment #2)
> For what target is this?
x86, host also is x86.


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

* [Bug c/56651] sin() and tan() have different values during compile time and run time.
  2013-03-18  9:49 [Bug c/56651] New: sin() and tan() has different values during compile time and run time sergey.s at samsung dot com
                   ` (2 preceding siblings ...)
  2013-03-18 11:07 ` sergey.s at samsung dot com
@ 2013-03-18 11:29 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-18 11:29 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-18 11:29:12 UTC ---
This is not a bug in GCC.  GCC evaluates to 0.5ulp precision at compile-time
using MPFR (for a cross-compiler it would have no way to invoke the actual
targets math library routine for example).  Thus the "bug" is in your
math library which does not evaluate to the same precision.

OTOH this is not a bug at all, but a "feature".  We cannot fix it.


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

end of thread, other threads:[~2013-03-18 11:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18  9:49 [Bug c/56651] New: sin() and tan() has different values during compile time and run time sergey.s at samsung dot com
2013-03-18  9:51 ` [Bug c/56651] " sergey.s at samsung dot com
2013-03-18 10:58 ` [Bug c/56651] sin() and tan() have " steven at gcc dot gnu.org
2013-03-18 11:07 ` sergey.s at samsung dot com
2013-03-18 11:29 ` rguenth at gcc dot gnu.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).