[Bug tree-optimization/28778] [4.0/4.1 Regression] alias bug with cast and call clobbered

2006-11-05 Thread chuck at vertica dot com
--- Comment #49 from chuck at vertica dot com 2006-11-05 23:39 --- Sorry. But maybe it is a FAQ because even with "-Wall" or "-Wstrict-aliasing=2" g++ 4.0.2 generates invalid code for this without so much as a peep. I here 4.1 is better about giving a warning. I g

[Bug tree-optimization/28778] [4.0/4.1 Regression] alias bug with cast and call clobbered

2006-11-05 Thread chuck at vertica dot com
--- Comment #46 from chuck at vertica dot com 2006-11-05 22:17 --- Folks, can anyone please tell me if this is the same problem as I am seeing here using gcc 4.0.2 for x86_64: #include inline long long Vgetbytes(double f) { return *reinterpret_cast(&f); } int main (int argc,