Message58480
I've tracked my problem to the GCC optimizer. The default optimizer
setting is -O3. When I edit the Makefile to change this to -O1 or -O0
and recompile (only) doubledigits.c, repr(1e5) starts returning
'100000.0' again. -O2 behaves the same as -O3.
Now, don't immediately start pointing fingers to the optimizer; it's
quite possible that the code depends on behavior that the C standard
doesn't actually guarantee. The code looks quote complicated.
This is with GCC 4.0.3. |
|
| Date |
User |
Action |
Args |
| 2007-12-12 00:31:08 | gvanrossum | set | spambayes_score: 0.0173694 -> 0.0173694 recipients:
+ gvanrossum, tim_one, nascheme, rhettinger, christian.heimes, noam |
| 2007-12-12 00:31:07 | gvanrossum | link | issue1580 messages |
| 2007-12-12 00:31:07 | gvanrossum | create | |
|