This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question on Taming the Optimizer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]