July 24, 2014 [dmd-internals] [D-Programming-Language/dmd] 44b9d2: Fix Issue 12164 - Function returning ptrdiff_t.min... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 44b9d2735e58833115fcf4fb7f3cc4ba524e9159 https://github.com/D-Programming-Language/dmd/commit/44b9d2735e58833115fcf4fb7f3cc4ba524e9159 Author: Daniel Murphy <yebblies@gmail.com> Date: 2014-07-24 (Thu, 24 Jul 2014) Changed paths: M src/backend/cod2.c M test/runnable/mars1.d Log Message: ----------- Fix Issue 12164 - Function returning ptrdiff_t.min in 64-bit returning 0 when -O is set The trick used to optimize ?const:const doesn't work when you can't actually express the value as immediates. They were silently truncated leading to incorrect results. Values were also truncated due to a typo. Commit: f4a8858f5dd2cf8a46917bae5cebade9c786d007 https://github.com/D-Programming-Language/dmd/commit/f4a8858f5dd2cf8a46917bae5cebade9c786d007 Author: Walter Bright <walter@walterbright.com> Date: 2014-07-24 (Thu, 24 Jul 2014) Changed paths: M src/backend/cod2.c M test/runnable/mars1.d Log Message: ----------- Merge pull request #3805 from yebblies/issue12164 Fix Issue 12164 - Function returning ptrdiff_t.min in 64-bit returning 0 when -O is set Compare: https://github.com/D-Programming-Language/dmd/compare/b2f6ebd2e5d4...f4a8858f5dd2 |
Copyright © 1999-2021 by the D Language Foundation