Overview
| Artifact ID: | 79eee7a61e1a8ed99c0674529a39e2a50a6f0407 |
|---|---|
| Ticket: | 1783544fffffffffffffffffffffffffffffffff
TclIsNaN may get "optimized away" |
| User & Date: | kot on 2007-08-28 17:33:14 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
When compiling on Solaris 10 using the latest Sun Studio 12 compiler (with ``-fast -xO3''), the current implementation of the TclIsNaN macro (generic/tclInt.h:3370 ``((d) != (d))'') gets optimized away and never returns true. This causes things like Tcl_PrintDouble to crash, when passed a NaN number. The attached patch changes the macro (and the adjacent one) to use the standard ones defined in math.h. There /could/ be platforms, where these standard macros aren't present -- they would need to be handled separately...
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "kot"
- subsystem changed to: "None"
- title changed to: "TclIsNaN may get "optimized away""
- type changed to: "Bug"