Bug#630441: g++-4.6 miscompilation
tag 630441 moreinfo help
On 07/21/2011 12:01 PM, Philip Ashmore wrote:
Sorry if I wasn't clear.
All the tests pass in the debug (-0O) build.
I've got gcc/g++ 4.4.6-6 installed and all the tests pass in debug and release
This is a problem with the g++ 4.6 release (-03) optimization.
Repeating my questions here:
how do you know that it's not undefined behaviour exposed by the new compiler
Some more information is needed:
- is this seen on amd64 only, or on other architectures too?
- which optimization flags are used? does lowering the optimization
level works around the issue?
- does it build using gcc-snapshot, gcc-4.5 or gcc-4.4?
- if you have a working and a non-working build, can you try
to combine object files to determine the problematic object