Question on Taming the Optimizer
Jeffrey Walton
noloader@gmail.com
Wed Sep 28 05:01:00 GMT 2011
Hi All,
What is the preferred way to tame the optimizer when two class
functions are producing incorrect results?
There's not much to the class - its a vector with copy semantics. So
it mirrors all vector's public functions, and forwards calls through
the internal vector pointer. The pointer is a boost shared_ptr.
-O2 is giving problems. -O0 is OK, Intel ICC is OK, and Visual Studio is OK.
Jeff
More information about the Gcc-help
mailing list