This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/25791] -O2 execution fails, -O and -g work
- From: "dick_guertin at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2006 19:01:24 -0000
- Subject: [Bug rtl-optimization/25791] -O2 execution fails, -O and -g work
- References: <bug-25791-12018@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from dick_guertin at yahoo dot com 2006-01-17 19:01 -------
First, I inherited this code from a co-worker who left the University. My
assignment was to keep this code working because the University relies on it.
Everything was fine until we went from 3.3.1 to 3.4.4, and then -O2
compilations of this code created a module that got execution failures. I've
been trying to "debug", but even 'gdb' is having troubles. I don't know what
"proprocessed source" is. All I have is true source. I don't know how to do a
"native backtrack" on a sparc, but would be willing to learn. I do know how to
use 'gdb' to "disas", examine variables, etc. If you don't have the time to
track this, then help me do it. By the way, did you notice the -O2 and -g
caused "next" executing linear (non-looping) statements to go like this: 3615,
3616, 3615, 3616, 3616, 3616, 3617, ...?? What's with that?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25791