Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Randolph Chung <randolph@tausq.org>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfa] fix call-dummies for hppa
Date: Wed, 28 Apr 2004 15:58:00 -0000	[thread overview]
Message-ID: <20040428155803.GN3965@tausq.org> (raw)
In-Reply-To: <408FD0E7.3000300@gnu.org>

> Which compilers?  I'm suspicious of GCC - it too often gets struct 
> parameters and return values internally consistent but wrong :-(

gcc only; I don't have access to the hp compilers. However, Dave 
(the hppa gcc maintainer) is quite careful about these things, so I 
think they are correct ;-)

> Be careful of white space change, this shouldn't be included.  If you 
> want to fix some indention just do it separatly.

ok, there were some stray tabs in the file so i was cleaning them up
along the way, but i'll remove that from this diff.

> (I've now got a copy of the 32-bit ABI but it doesn't help much)

this is the som runtime doc?  it's not particularly clear about small 
structs.....

> the comment doesn't match the assignment.
> 
> >+      /* The first parameter goes into sp-36, each stack slot is 4-bytes. 
> >*/
> >+      CORE_ADDR param_ptr = 32;

it does, actually, because the param_ptr is incremented by 4 for each
argument, so the first one goes to 36.

> >+	  else if (TYPE_CODE (type) == TYPE_CODE_FLT)
> >+            {
> 
> more comments (the rest is well commented), ``&& TYPE_LENGTH () == 4'' 
> test needed?
> 
> >+	      param_len = align_up (TYPE_LENGTH (type), 4);
> >+	      memcpy (param_val, VALUE_CONTENTS (arg), param_len);

yes, this bit is wrong. i found some more bugs in this function. will
send a new version with the whitespace changes removed and comments
added.

thanks,
randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


  reply	other threads:[~2004-04-28 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-24 19:02 Randolph Chung
2004-04-28 15:42 ` Andrew Cagney
2004-04-28 15:58   ` Randolph Chung [this message]
2004-04-28 20:30     ` Andrew Cagney
2004-04-28 17:18   ` Randolph Chung
2004-04-29  0:15     ` Joel Brobecker
2004-04-29  2:59       ` Randolph Chung

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=20040428155803.GN3965@tausq.org \
    --to=randolph@tausq.org \
    --cc=cagney@gnu.org \
    --cc=gdb-patches@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