From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: "J.T. Conklin" <jtc@redback.com>
Cc: gdb@sourceware.cygnus.com
Subject: Re: SKIP_PROLOGUE() and prologue insn scheduling
Date: Tue, 17 Jul 2001 16:31:00 -0000 [thread overview]
Message-ID: <20010717163126.A5385@nevyn.them.org> (raw)
In-Reply-To: <5msnfv9nsp.fsf@orac.redback.com>
On Tue, Jul 17, 2001 at 03:46:30PM -0700, J.T. Conklin wrote:
> A coworker asked me what the prefered behavior of the SKIP_PROLOGUE()
> macro when the compiler schedules the function prologue in with user
> insns. I didn't have a good answer and the internals documentation
> doesn't address this, so I'm shooting the question to the list.
>
> The choice is whether SKIP_PROLOGUE() returns:
> 1) 1st user insn even though more prologue insns remain?
> 2) 1st user insn after final prologue insn?
>
> Of these two, I think #1 is the most conservative choice. However,
> gdb may may not be able to print function arguments correctly until
> the user steps beyond the remainder of the prologue. While #2 does
> not have that problem, having user insns execute as part of the
> prologue could also be confusing --- Especially those that have
> observable side effects (e.g. writes to a memory mapped device).
>
> What is the common wisdom? At the very least, I think we need to
> flesh out this issue in the internals document.
IMO, #1 is the way to go. It's regrettable in that a whole lot of
tests start failing, since we will display arguments wrong. But if the
prologue is being scheduled, it's possible to schedule part of the
prologue on the interior of a large if statement (which encompasses the
rest of the body of the function, say). If we do #2, we may never stop
in the function at all.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2001-07-17 16:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-17 15:46 J.T. Conklin
2001-07-17 16:31 ` Daniel Jacobowitz [this message]
2001-07-18 9:31 ` Greg McGary
2001-07-18 14:21 ` Kevin Buettner
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=20010717163126.A5385@nevyn.them.org \
--to=dmj+@andrew.cmu.edu \
--cc=gdb@sourceware.cygnus.com \
--cc=jtc@redback.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