Bug#501404: g++-4.3: Optimization changes output

2008-10-07 Thread Benjamin Wolsey
Package: g++-4.3 Version: 4.3.2-1 Severity: important Compile the following code with g++: === #include cmath #include iostream struct TimeStruct { int millisecond; int second; }; void fillTimeStruct(double time, TimeStruct gt) { gt.millisecond = std::fmod(time, 1000.0);

Bug#501404: Smaller testcase

2008-10-07 Thread Benjamin Wolsey
A smaller testcase is: == #include cmath #include iostream void fillTime(double time, double second) { time /= 1000.0; second = std::fmod(time, 86400.0); } int main() { double d = 3.0935415006117e+23; double s; fillTime(d, s); std::cout s std::endl;

[Bug middle-end/29609] [4.2/4.3/4.4 Regression] Even with -O0 -g gcc optimizes a goto away and I cannot debug

2008-10-07 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2008-10-07 18:50 --- Subject: Bug 29609 Author: jakub Date: Tue Oct 7 18:48:40 2008 New Revision: 140948 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140948 Log: PR debug/29609 PR debug/36690 PR

[Bug middle-end/29609] [4.2/4.3/4.4 Regression] Even with -O0 -g gcc optimizes a goto away and I cannot debug

2008-10-07 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2008-10-07 19:01 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED