public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25975] Problems with -ffast-math and isnan
       [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-17  7:13 ` rguenth at gcc dot gnu.org
  2011-10-17 15:45 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-17  7:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ejtttje at gmail dot com

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-17 07:12:38 UTC ---
*** Bug 50724 has been marked as a duplicate of this bug. ***


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

* [Bug c/25975] Problems with -ffast-math and isnan
       [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
  2011-10-17  7:13 ` [Bug c/25975] Problems with -ffast-math and isnan rguenth at gcc dot gnu.org
@ 2011-10-17 15:45 ` paolo.carlini at oracle dot com
  2011-10-17 16:49 ` paolo.carlini at oracle dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-17 15:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-17 15:43:58 UTC ---
*** Bug 50724 has been marked as a duplicate of this bug. ***


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

* [Bug c/25975] Problems with -ffast-math and isnan
       [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
  2011-10-17  7:13 ` [Bug c/25975] Problems with -ffast-math and isnan rguenth at gcc dot gnu.org
  2011-10-17 15:45 ` paolo.carlini at oracle dot com
@ 2011-10-17 16:49 ` paolo.carlini at oracle dot com
  2011-10-17 18:54 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-17 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-17 16:49:03 UTC ---
*** Bug 50724 has been marked as a duplicate of this bug. ***


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

* [Bug c/25975] Problems with -ffast-math and isnan
       [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-10-17 16:49 ` paolo.carlini at oracle dot com
@ 2011-10-17 18:54 ` paolo.carlini at oracle dot com
  2011-10-17 19:26 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-17 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-17 18:53:56 UTC ---
*** Bug 50724 has been marked as a duplicate of this bug. ***


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

* [Bug c/25975] Problems with -ffast-math and isnan
       [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-10-17 18:54 ` paolo.carlini at oracle dot com
@ 2011-10-17 19:26 ` pinskia at gcc dot gnu.org
  2011-10-17 21:06 ` redi at gcc dot gnu.org
  2014-02-17 12:46 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-10-17 19:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-10-17 19:25:07 UTC ---
*** Bug 50724 has been marked as a duplicate of this bug. ***


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

* [Bug c/25975] Problems with -ffast-math and isnan
       [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2011-10-17 19:26 ` pinskia at gcc dot gnu.org
@ 2011-10-17 21:06 ` redi at gcc dot gnu.org
  2014-02-17 12:46 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-17 21:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-17 21:05:02 UTC ---
*** Bug 50724 has been marked as a duplicate of this bug. ***


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

* [Bug c/25975] Problems with -ffast-math and isnan
       [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2011-10-17 21:06 ` redi at gcc dot gnu.org
@ 2014-02-17 12:46 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-02-17 12:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 60237 has been marked as a duplicate of this bug. ***


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

* [Bug c/25975] Problems with -ffast-math and isnan
  2006-01-26 14:41 [Bug c/25975] New: " terra at gnome dot org
                   ` (2 preceding siblings ...)
  2006-01-26 14:47 ` pinskia at gcc dot gnu dot org
@ 2006-01-26 17:22 ` terra at gnome dot org
  3 siblings, 0 replies; 11+ messages in thread
From: terra at gnome dot org @ 2006-01-26 17:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from terra at gnome dot org  2006-01-26 17:22 -------
ok, thanks.  I'll prevent this by checking for __FAST_MATH__ in my code.
One could argue for a warning like

nan.c:13: warning: comparison is always false due to limited range of data type

for use of isnan and similarly (with true) for finite.


-- 


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


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

* [Bug c/25975] Problems with -ffast-math and isnan
  2006-01-26 14:41 [Bug c/25975] New: " terra at gnome dot org
  2006-01-26 14:43 ` [Bug c/25975] " terra at gnome dot org
  2006-01-26 14:44 ` pinskia at gcc dot gnu dot org
@ 2006-01-26 14:47 ` pinskia at gcc dot gnu dot org
  2006-01-26 17:22 ` terra at gnome dot org
  3 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-26 14:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-01-26 14:47 -------
-ffast-math
Sets -fno-math-errno, -funsafe-math-optimizations, 
-fno-trapping-math, -ffinite-math-only, -fno-rounding-math, -fno-signaling-nans
and fcx-limited-range.
This option causes the preprocessor macro __FAST_MATH__ to be defined.

This option should never be turned on by any -O option since it can result in
incorrect output for programs which depend on an exact implementation of IEEE
or ISO rules/specifications for math functions. 


-ffinite-math-only
Allow optimizations for floating-point arithmetic that assume that arguments
and results are not NaNs or +-Infs.
This option should never be turned on by any -O option since it can result in
incorrect output for programs which depend on an exact implementation of IEEE
or ISO rules/specifications.

The default is -fno-finite-math-only. 


-- 


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


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

* [Bug c/25975] Problems with -ffast-math and isnan
  2006-01-26 14:41 [Bug c/25975] New: " terra at gnome dot org
  2006-01-26 14:43 ` [Bug c/25975] " terra at gnome dot org
@ 2006-01-26 14:44 ` pinskia at gcc dot gnu dot org
  2006-01-26 14:47 ` pinskia at gcc dot gnu dot org
  2006-01-26 17:22 ` terra at gnome dot org
  3 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-26 14:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-26 14:44 -------
Please read the docs about -ffast-math.  It enables the option
-ffinite-math-only which means no NaNs.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug c/25975] Problems with -ffast-math and isnan
  2006-01-26 14:41 [Bug c/25975] New: " terra at gnome dot org
@ 2006-01-26 14:43 ` terra at gnome dot org
  2006-01-26 14:44 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: terra at gnome dot org @ 2006-01-26 14:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from terra at gnome dot org  2006-01-26 14:43 -------
Created an attachment (id=10732)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10732&action=view)
Output from "gcc-4.0.2 -E -ffast-math nan.c"

> gcc-4.0.2 -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../../gcc-4.0.2/configure --enable-languages=c,c++,f95
--prefix=/usr/local/products/gcc/4.0.2 --with-gnu-as
--with-as=/usr/local/products/gcc/binutils-2.16/bin/as --with-gnu-ld
--with-ld=/usr/local/products/gcc/binutils-2.16/bin/ld
Thread model: posix
gcc version 4.0.2


-- 


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


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

end of thread, other threads:[~2014-02-17 12:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-25975-4@http.gcc.gnu.org/bugzilla/>
2011-10-17  7:13 ` [Bug c/25975] Problems with -ffast-math and isnan rguenth at gcc dot gnu.org
2011-10-17 15:45 ` paolo.carlini at oracle dot com
2011-10-17 16:49 ` paolo.carlini at oracle dot com
2011-10-17 18:54 ` paolo.carlini at oracle dot com
2011-10-17 19:26 ` pinskia at gcc dot gnu.org
2011-10-17 21:06 ` redi at gcc dot gnu.org
2014-02-17 12:46 ` rguenth at gcc dot gnu.org
2006-01-26 14:41 [Bug c/25975] New: " terra at gnome dot org
2006-01-26 14:43 ` [Bug c/25975] " terra at gnome dot org
2006-01-26 14:44 ` pinskia at gcc dot gnu dot org
2006-01-26 14:47 ` pinskia at gcc dot gnu dot org
2006-01-26 17:22 ` terra at gnome 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).