From: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
To: gdb@sources.redhat.com
Subject: Re: bug disappears if compiled with -O0
Date: Mon, 26 Jul 2004 21:13:00 -0000 [thread overview]
Message-ID: <20040726211129.GC2028@ata.cs.hun.edu.tr> (raw)
In-Reply-To: <41047629.nailSP1ZPLRF@mindspring.com>
Hello Michael and Eli,
On Sun, Jul 25, 2004 at 11:10:33PM -0400, Michael Chastain wrote:
> gdb can debug code generated with gcc -g -O2. However, when debugging
> optimized code, things like "next" appear to skip around, and variables
> sometimes don't contain the values that you think that they should.
This was the very reason why I wanted to use -O0 :) .
> You didn't mention what language your library is written in.
C++.
> If the bug truly is a code generation bug, then you will need to read
> assembly language to isolate the bug.
I will as soon as I'm able to locate it. Could it be anything other than
an optimization bug? The problem is reported also for gcc 2.95.4 on
stable.
With kind regards,
Baurjan.
next prev parent reply other threads:[~2004-07-26 21:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-26 3:10 Baurjan Ismagulov
2004-07-26 3:55 ` Michael Chastain
2004-07-26 21:13 ` Baurjan Ismagulov [this message]
2004-07-26 21:19 ` Kip Macy
2004-07-27 0:52 ` Michael Chastain
2004-07-26 5:47 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040726211129.GC2028@ata.cs.hun.edu.tr \
--to=ibr@ata.cs.hun.edu.tr \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox