[dylan-lang/opendylan] e663a2: [dfmc-c-back-end] Fix generated C for infinity and...
GitHub <[email protected]>
| Newsgroups | gmane.comp.lang.dylan.gwydion.cvs |
|---|---|
| Message-ID | <5541b40a47ce9_17f33fa66a3572bc9872f@hookshot-fe6-cp1-prd.iad.github.net.mail> |
Branch: refs/heads/master
Home: https://github.com/dylan-lang/opendylan
Commit: e663a2355d89723d51ef055100593bbbea021153
https://github.com/dylan-lang/opendylan/commit/e663a2355d89723d51ef055100593bbbea021153
Author: Bruce Mitchener <[email protected]>
Date: 2015-04-30 (Thu, 30 Apr 2015)
Changed paths:
M sources/dfmc/c-back-end/c-emit-object.dylan
Log Message:
-----------
[dfmc-c-back-end] Fix generated C for infinity and NaN values.
Fixes #876.
* sources/dfmc/c-back-end/c-emit-object.dylan
(print-raw-object on <float>): Examine the result of float-to-string
and generate correct C for infinite and NaN values by looking for
the string representations that float-to-string creates.
This examines the string representation because classify-float hasn't
landed yet, and even if it had, it wouldn't be available here yet
until we'd done a release due to bootstrapping issues.
Infinite and NaN values aren't commonly present as values that need
to have C generated, but it can happen. One primary cause of this
happening is the lack of floating point exception handling in the
C back-end and run-time, so constant folding within the compiler
can result in infinite and NaN values. This will be addressed in
future work.
Commit: be668ace1584b1e16bb2f0b71b4998dbc792d4dc
https://github.com/dylan-lang/opendylan/commit/be668ace1584b1e16bb2f0b71b4998dbc792d4dc
Author: Peter S. Housel <[email protected]>
Date: 2015-04-29 (Wed, 29 Apr 2015)
Changed paths:
M sources/dfmc/c-back-end/c-emit-object.dylan
Log Message:
-----------
Merge pull request #892 from waywardmonkeys/fix-c-back-end-float-printing
[dfmc-c-back-end] Fix generated C for infinity and NaN values.
Compare: https://github.com/dylan-lang/opendylan/compare/920bf64e55c7...be668ace1584
_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter