From: Helge Deller <deller@gmx.de>
To: John David Anglin <dave.anglin@bell.net>
Cc: "linux-parisc@vger.kernel.org" <linux-parisc@vger.kernel.org>,
List <linux-parisc@vger.kernel.org>, Jeff Law <law@redhat.com>
Subject: Re: Change call ABI on PA-RISC
Date: Sun, 13 Nov 2016 19:37:59 +0100 [thread overview]
Message-ID: <bf499ea2-6148-9cf8-eba3-b0f6de5cf309@gmx.de> (raw)
In-Reply-To: <0E3ABDFC-D082-4DA8-9D5B-12FC7E95335F@bell.net>
On 12.11.2016 19:00, John David Anglin wrote:
> I'm thinking about adding a "-mabi=" option to change the call ABI. Currently, objects larger than 64 bits
> in the 32-bit runtime are passed by reference and the callee copies the object when necessary. This is
> opposite to x86 where the caller does the copies. Most targets are caller copies.
>
> The problem with callee copies is that it doesn't work with openmp. There are race problems and sometimes
> we get internal compiler errors with openmp code due to this problem. This became apparent when new testcases
> were added to gcc-6. It's tough to fix this problem in gcc.
>
> This is gcc PR:
> <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68733>.
>
> This is fixed if we change abi to caller copies (maybe "-mabi=gnu" and "-mabi=hp"). The default could be set
> by a configure options. Probably, we would want the new gnu abi on linux as the default. However, there is
> the potential to break stuff during the migration to the new abi.
>
> Opinions?
PA-RISC Linux is a niche platform. We always had problems with platform-specifics
which were different to the more widely-used platforms (e.g. stack-grows-upwards,
more signal numbers (>32) than other platforms, EWOULDBLOCK != EAGAIN, ...).
That said, I like your proposal if we then gain openmp support and if it doesn't
heavily breaks other stuff.
If you are going to change the ABI, maybe we can add more things as well?
Which comes to my mind here is for example an optimized mcount() function
which allows changing the return pointer (see -mmcount-ra-address on MIPS) ?
Helge
next prev parent reply other threads:[~2016-11-13 18:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-12 18:00 Change call ABI on PA-RISC John David Anglin
2016-11-13 18:37 ` Helge Deller [this message]
2016-11-13 18:56 ` Jeff Law
2016-11-13 19:48 ` Helge Deller
2016-11-14 8:21 ` Jeff Law
2016-11-14 15:11 ` John David Anglin
2016-11-14 16:24 ` Helge Deller
2016-11-14 17:02 ` John David Anglin
2016-11-14 17:02 ` Jeff Law
2016-11-14 17:23 ` Carlos O'Donell
2016-11-15 18:30 ` Helge Deller
2016-11-16 0:04 ` John David Anglin
2016-11-17 20:19 ` Carlos O'Donell
2016-11-14 13:32 ` Carlos O'Donell
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=bf499ea2-6148-9cf8-eba3-b0f6de5cf309@gmx.de \
--to=deller@gmx.de \
--cc=dave.anglin@bell.net \
--cc=law@redhat.com \
--cc=linux-parisc@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.