public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Flags -g and -O give very different results
@ 2006-07-01  2:35 Michael P Friedlander
  2006-07-02 18:31 ` Andrew Haley
  2006-07-03 10:40 ` Brian Gough
  0 siblings, 2 replies; 8+ messages in thread
From: Michael P Friedlander @ 2006-07-01  2:35 UTC (permalink / raw)
  To: gcc-help

Hi Folks,

The behavior of a numerical code I'm working on varies
drastically depending on whether I've compiled it with
the  -g  or  -O  flags.

The code's behavior under -g is much more stable, and I'm
wondering if the -O flag is exposing a bug that I need to
fix.  Are there some gcc flags that I should try that might
guide me in finding the problem?  (I've already tried the
obvious  -Wall  which gives no warnings.)

In case it helps, I'm using both gcc 4.1.0 (SUSE Linux)
and on gcc 4.0.1 (Mac PPC) which give similar behavior.

Thanks!
--Michael



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

end of thread, other threads:[~2006-07-03 10:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-01  2:35 Flags -g and -O give very different results Michael P Friedlander
2006-07-02 18:31 ` Andrew Haley
2006-07-02 19:28   ` Michael P Friedlander
2006-07-02 19:41     ` Tim Prince
2006-07-02 21:00     ` Segher Boessenkool
2006-07-02 21:05     ` Brian Dessent
2006-07-03  9:32     ` Andrew Haley
2006-07-03 10:40 ` Brian Gough

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).