From: Elena Zannoni <ezannoni@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Elena Zannoni <ezannoni@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] Altivec ABI patches
Date: Mon, 29 Apr 2002 08:40:00 -0000 [thread overview]
Message-ID: <15565.26939.309256.444181@localhost.redhat.com> (raw)
In-Reply-To: <1020427080809.ZM32701@localhost.localdomain>
Kevin Buettner writes:
> On Apr 26, 9:44pm, Elena Zannoni wrote:
>
> > > Note that the subsequent memcpy() ends up overwriting the memory
> > > zero'd by the assignment. If the assignment does serve some useful
> > > purpose, I'd prefer to see memset() used instead.
> > >
> >
> > It does seem odd, I actually just cut and pasted the code from a few
> > lines above. I thought there was some reason for it, after all.
> >
> > {
> > *(int *) ®isters[REGISTER_BYTE (greg)] = 0;
> > memcpy (®isters[REGISTER_BYTE (greg)], val_buf, 4);
> > greg++;
> > }
> >
> > Should this go as well, then?
>
> Yes, definitely. As written, this code could yield some very
> unexpected results on certain hosts.
>
> Thanks for pointing this out. This is very likely a mistake that I
> made a while back.
>
> > Unless it always writes 4 bytes, but the
> > size of the general register can be bigger?
>
> Well, the code in question doesn't work for 64-bit ABIs, but then, as
> I understand it, the 64-bit PowerPC SVR4 ABI resembles the old PowerOpen
> ABI than it does the 32-bit SVR4 ABI. (Actually, I don't know that
> much about it. If someone could give me a pointer to an ABI spec for
> the 64-bit ABI, I would appreciate it very much.)
>
> Kevin
OK, I have removed those 2 statements and committed the rest.
Elena
next prev parent reply other threads:[~2002-04-29 15:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-26 13:45 Elena Zannoni
2002-04-26 16:02 ` Kevin Buettner
2002-04-26 18:45 ` Elena Zannoni
2002-04-27 1:08 ` Kevin Buettner
2002-04-27 12:12 ` David Edelsohn
2002-04-29 8:40 ` Elena Zannoni [this message]
2002-04-29 12:45 ` Jim Blandy
2002-04-29 13:31 ` Elena Zannoni
2002-05-01 9:13 ` Jim Blandy
2002-05-02 0:22 ` Jim Blandy
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=15565.26939.309256.444181@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@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