Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 2014 22:52:54 +0400
From:      Andrey Chernov <ache@freebsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        toolchain@freebsd.org
Subject:   Re: clang makes segfaulting code with -march=core2 on i386
Message-ID:  <54149286.80608@freebsd.org>
In-Reply-To: <CC121A4D-A6D0-430B-B15F-BFB48C5FB6E6@FreeBSD.org>
References:  <54130AD0.8090103@freebsd.org> <A212D7AF-4DA7-4043-BB73-1746A5C2F42F@FreeBSD.org> <54133E1E.9030105@freebsd.org> <54135B24.5040905@freebsd.org> <54135D0B.7060701@freebsd.org> <6FDF432B-8245-4BC7-952B-DFFEEA106D6F@FreeBSD.org> <5414865A.6030101@freebsd.org> <CC121A4D-A6D0-430B-B15F-BFB48C5FB6E6@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--9TuO7hLcmsFCUr6gT8Q63VCkDg5G6qB7f
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: quoted-printable

On 13.09.2014 22:30, Dimitry Andric wrote:
>> By first glance I see a lots of <optimized out> things. It is known th=
at
>> in edge cases gcc preserves more "unused" values than clang. It can be=

>> the possible case. I'll try to lower -O level preserving -march=3Dcore=
2
>> and see.
>=20
> It seems to work for me with -O1 -march=3Dcore2, and while valgrind doe=
s
> complain a little, the warnings are all benign.
>=20
> I'll see if I can "mix and match" a few -O2 and -O1 compiled objects, t=
o
> zero in on where the problematic area(s) are.

I can confirm that it works with -march=3Dcore2 and without -O at all or
with -O1. So it looks very match like overoptimization in clang.

--=20
http://ache.vniz.net/


--9TuO7hLcmsFCUr6gT8Q63VCkDg5G6qB7f
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJUFJKGAAoJEKUckv0MjfbKGCQH/3DIJ+bOv8boGbr0xe4wh4nB
11cgEAKolrNH6qJBzkiASFnScHgN+wMHItwiSYCZ5l24Birw9ev0K/UKdGFmCgiW
OOTcEzFed1dIC7R5oCxN5d3NgiN1jQNRPXL4GFa1TPB+e5fV4E9FhvBha/p1shWe
9q1JCWyRhhRj2gvC5SwmnZHxiiPngc/Y4Nihpag6IfnLbwLb8OgqA/jTmuIZQNgN
vtphxlMSM3igAix91BU4cfoCWyxzYq7IFJjCa5uWFET4R86epdXX+mPtd5D3fP6t
FCld0k2VbOheH/7srIjoU841huZ+ybQWBWLeH0/FmjF4jjoTswmGJ1MRAk9epyI=
=JJaf
-----END PGP SIGNATURE-----

--9TuO7hLcmsFCUr6gT8Q63VCkDg5G6qB7f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54149286.80608>