This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.7][SH] Binary compatibility with atomic_test_and_test_trueval != 1
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: rth at redhat dot com
- Cc: oleg dot endo at t-online dot de, gcc-patches at gcc dot gnu dot org, jakub at redhat dot com, kkojima at gcc dot gnu dot org
- Date: Sat, 03 Mar 2012 08:39:28 +0900 (JST)
- Subject: Re: [4.7][SH] Binary compatibility with atomic_test_and_test_trueval != 1
- References: <4F21D3AC.2030500@redhat.com> <1330442171.2929.150.camel@yam-132-YW-E178-FTW> <4F510D55.4090803@redhat.com>
Richard Henderson <rth@redhat.com> wrote:
> For proper binary compatibility, we should probably introduce that asap.
> You forgot two things in your patch, gen_int_mode and the fact that we
> still have to return a boolean (0/1) value.
>
> Also in order for the binary compatibility to work right, you'd want to
> have the SH test-and-set-trueval set appropriately asap. Kaz, I assume
> you'd agree that 0x80 is a good value for the "tas.b" insn? We don't
> necessarily need to support tas.b right away, but getting trueval set
> right is imperative.
Yes, 0x80 is an appropriate value as you and oleg have suggested.
Regards,
kaz