Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: Mark Kettenis <kettenis@chello.nl>, gdb-patches@sources.redhat.com
Subject: Re: [rfa/i386] Make codestream deprecated?
Date: Wed, 08 Jan 2003 20:31:00 -0000	[thread overview]
Message-ID: <20030108203021.GA5740@nevyn.them.org> (raw)
In-Reply-To: <3E1C878B.2050607@redhat.com>

On Wed, Jan 08, 2003 at 03:18:19PM -0500, Andrew Cagney wrote:
> >Andrew Cagney <ac131313@redhat.com> writes:
> >
> >
> >>2002-12-01  Andrew Cagney  <ac131313@redhat.com>
> >>
> >>	* i386-tdep.c: Replace `codestream' with `deprecated_codestream'.
> >
> >
> >Sorry, but I'm not really enthousiastic about this patch.  IMHO a
> >comment explaining the reason why one shouldn't copy this bit of code
> >would be much better.  I'm willing to rip out this bit of code, and
> >replace it with something cleaner and simpler, but this "deprication"
> >is only noise to me.
> 
> I'll add a comment.  Briefly it will read:
> 
> ``The deprecated codestream mechanism is entirely redundant.  The dcache 
> superseeds it, providing a generic mechanism for caching both 
> instruction and data values.  If the dcache has problems or limitations 
> than that, and not this code, needs to be fixed.''

Except we don't _use_ the dcache, normally.  And my last attempts to
enable it by default met with a pretty crummy reaction.  And the last
time I benchmarked using the dcache I got worse results than without
it.

[And you spelled supersedes incorrectly :)]

> While you might think of marking this as deprecated as noice, as I noted 
> to Daniel, it has a very real and direct objective:
> 
> >Been there, tried that.  As best I can tell, the only thing that makes 
> >someone stop and think, is the word deprecated in the name.  Coders don't 
> >always read the comments, reviewers can't keep track of everything that is 
> >being eliminated :-/
> 
> If I don't do this, I find I get a (lets say) less than favourable 
> reception when asking a contributor to not [re]use a mechanism 
> identified as deprecated via either a comment or bug report.  cf, this 
> very code block when cloned into another architecture; or the regcache 
> code before I went through and marked much of that as deprecated.

Maybe I just have a short memory, but when has that happened?  That
you've pointed out that something was marked deprecated before it was
reused, and gotten a bad reception?

Besides: this is why you should _remove_ them, rather than just
commenting them, if you want them to go away.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-01-08 20:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-01 16:39 Andrew Cagney
2002-12-01 17:02 ` Daniel Jacobowitz
2002-12-01 17:51   ` Andrew Cagney
2002-12-07 10:16 ` Mark Kettenis
2003-01-08 20:18   ` Andrew Cagney
2003-01-08 20:31     ` Daniel Jacobowitz [this message]
2003-01-08 21:03       ` Andrew Cagney
2003-01-08 21:13         ` Daniel Jacobowitz
2003-01-08 21:19           ` Daniel Jacobowitz
2003-01-08 22:43             ` Andrew Cagney
2003-01-30  3:31 ` Andrew Cagney

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=20030108203021.GA5740@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /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