public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Question on Taming the Optimizer
@ 2011-09-28  5:01 Jeffrey Walton
  2011-09-28  6:15 ` Jonathan Wakely
  2011-09-28 15:00 ` Andrew Haley
  0 siblings, 2 replies; 5+ messages in thread
From: Jeffrey Walton @ 2011-09-28  5:01 UTC (permalink / raw)
  To: GCC Users List

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-28  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-28  5:01 Question on Taming the Optimizer Jeffrey Walton
2011-09-28  6:15 ` Jonathan Wakely
2011-09-28  7:37   ` Jeffrey Walton
2011-09-28 14:36     ` Jonathan Wakely
2011-09-28 15:00 ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).