This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -g -O debug-info problem (on x86)
- To: craig at jcb-sc dot com
- Subject: Re: -g -O debug-info problem (on x86)
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Sun, 23 May 1999 05:26:52 -0600
- cc: egcs-bugs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990517045720.21479.qmail@deer>you write:
> I've been noticing a tendency that, when debugging, the program being
> debugged can "slide" through the first executable statement after
> hitting a breakpoint supposedly put on the *entry* to a routine, such
> as main().
>
> This is apparently due to some internal reorganizing of RTL (?) within
> egcs (using the 19990502 snapshot) when optimizing.
>
> Here's a sample test program:
[ ... ]
Thanks. I believe the problem is either the placement of the prologue
or something in flow2 reordering the location of the prologue relative
to the first line note.
The former is more likely, though I don't see from a quick look how it
could be happening. Maybe there's something different about the CFG
we produce when not optimizing that is causing us to place the insns
for the prologue in the wrong location. rth might be the best person
to look at this.
jeff