From: "Gerhard Tonn" <TON@de.ibm.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [Patch] Fix ABI incompatibilities on s390x
Date: Tue, 26 Nov 2002 01:24:00 -0000 [thread overview]
Message-ID: <OF24F55210.C36A355A-ONC1256C7D.00334389@de.ibm.com> (raw)
Hi,
I don't think that it is worthwhile to duplicate the functions. The only
difference between s390 and s390x is really the REGISTER_SIZE. I will
rework the patch so that this becomes more clear. I will also address the
other issues.
Regards / Mit freundlichen Gruessen
Gerhard
Gerhard Tonn, Linux for eServer Development, +(49)-7031-16-4716, Lotus
Notes: ton@ibmde,
Internet: ton@de.ibm.com
Jim Blandy <jimb@redhat.com> on 21.11.2002 06:16:41
To: Gerhard Tonn/Germany/IBM@IBMDE
cc: gdb-patches@sources.redhat.com
Subject: Re: [Patch] Fix ABI incompatibilities on s390x
Gerhard Tonn <ton@de.ibm.com> writes:
> attached is a patch that fixes some ABI incompatibilities for the s390x
> architecture.
Hi, thanks for working on this!
First of all, this patch incudes a number of different fixes, all
mixed together:
- struct return fixes
- push_arguments fixes
- get_frame_info fixes
These each need to be submitted as separate patches. (I understand
that IBM has a special agreement regarding how copyright assignment is
handled; perhaps the patches could be reviewed separately, but then
assigned as a single patch.)
> 2002-11-19 Gerhard Tonn <ton@de.ibm.com>
>
> * s390-tdep.c (s390_push_arguments, s390_get_frame_info):
> Fix the s390x ELF ABI implementation bugs.
If our Changelog entries all said, "Fixed bugs in this code", they
wouldn't be very useful. :)
We have had very bad experiences with trying to make a single function
serve two different ABI's in the past. (mips_push_arguments seems to
have been cleaned up since I last looked; it was a real mess.) So
while using things like 'REGISTER_SIZE' and
'S390_STACK_PARAMETER_ALIGNMENT' are clearly a good idea, for the sake
of the other stuff I'd like to see a separate 's390x_push_arguments'
function written that does things right for the s390x's ABI. The
helper functions like `is_simple_arg' should be duplicated, rather
than testing GDB_TARGET_IS_ESAME.
I understand this may seem pedantic --- after all, it's just a few
minor differences, why duplicate all that code? --- but I think
history will back me up.
Some other comments:
> + || (is_struct_like (type) && (GDB_TARGET_IS_ESAME ? 1 : length != 8))
That idiom shows up a lot in this patch --- wouldn't it be more
legible to write:
|| (is_struct_like (type) && (GDB_TARGET_IS_ESAME || length != 8))
? Of course, a lot of these will go away entirely when the s390/s390x
functions are split.
next reply other threads:[~2002-11-26 9:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-26 1:24 Gerhard Tonn [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-02 11:36 Gerhard Tonn
2003-02-04 0:04 ` Jim Blandy
2003-02-04 6:02 ` Gerhard Tonn
2003-01-23 10:49 Gerhard Tonn
2003-01-31 5:49 ` Andrew Cagney
2003-01-31 21:26 ` Jim Blandy
2002-11-19 0:54 Gerhard Tonn
2002-11-20 21:33 ` Jim Blandy
2002-11-20 21:46 ` 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=OF24F55210.C36A355A-ONC1256C7D.00334389@de.ibm.com \
--to=ton@de.ibm.com \
--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