Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2015 22:26:10 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Ian Lepore <ian@FreeBSD.org>
Cc:        Warner Losh <imp@bsdimp.com>, Andrew Turner <andrew@fubar.geek.nz>, src-committers <src-committers@freebsd.org>, svn-src-projects@freebsd.org
Subject:   Re: svn commit: r288121 - projects/clang370-import/contrib/libc++/src/support
Message-ID:  <77B76EA2-1C5A-4B35-BBAA-78F1ECAC9754@FreeBSD.org>
In-Reply-To: <1442949245.1224.229.camel@freebsd.org>
References:  <201509221734.t8MHYp0W052286@repo.freebsd.org> <00F42FF7-84D4-4C97-974F-C28DB36D4392@bsdimp.com> <9B0C3FE9-821B-470E-8AFC-F5B3DCE5B8F4@FreeBSD.org> <1442949245.1224.229.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_93E56BBB-8194-4E97-86D1-DFFD5C5A1AC9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On 22 Sep 2015, at 21:14, Ian Lepore <ian@FreeBSD.org> wrote:
>=20
> On Tue, 2015-09-22 at 20:48 +0200, Dimitry Andric wrote:
>> On 22 Sep 2015, at 20:37, Warner Losh <imp@bsdimp.com> wrote:
...
>>> I=E2=80=99m not entirely sure that your =E2=80=98fix=E2=80=99 makes =
things actually safe, even if it
>>> seems to make them work today. I=E2=80=99ll have to study it more =
closely.
>>=20
>> Probably not 100% safe, since the stub functions are just =
placeholders
>> which aren't atomic at all.
>=20
> This is confusing.  The fact that these are stubs and aren't atomic at
> all is the problem.  There's no reason not to have real =
implementations
> on arm < v6, machine/atomic.h has all the common stuff implemented
> already.

They were not yet available in e.g. libgcc or libcompiler-rt, so I got
link errors when clang was emitting calls to e.g. __atomic_add_fetch().

Andy has now fixed this with r288125, so I can revert this crude
workaround. :-)

-Dimitry


--Apple-Mail=_93E56BBB-8194-4E97-86D1-DFFD5C5A1AC9
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.28

iEYEARECAAYFAlYBuWgACgkQsF6jCi4glqNn1wCcCViQNz3OdOGHO0CdaGhBhmDD
G0cAni2E9WRuIqAeH262p8jskdgFyrnC
=PFaM
-----END PGP SIGNATURE-----

--Apple-Mail=_93E56BBB-8194-4E97-86D1-DFFD5C5A1AC9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77B76EA2-1C5A-4B35-BBAA-78F1ECAC9754>