Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2013 16:46:27 +0000
From:      David Chisnall <theraven@FreeBSD.org>
To:        Stefan Farfeleder <stefanf@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org, Dimitry Andric <dim@FreeBSD.org>, Nathan Whitehorn <nwhitehorn@FreeBSD.org>
Subject:   Re: clang 3.2 RC2 miscompiles libgcc?
Message-ID:  <EA4BC8F5-A501-4E4A-A223-7572B9A65758@FreeBSD.org>
In-Reply-To: <20130106141708.GA1418@mole.fafoe.narf.at>
References:  <20121227150724.GA1431@mole.fafoe.narf.at> <50DC65F5.6060004@freebsd.org> <50E0BD66.4070609@FreeBSD.org> <20130102135950.GA1464@mole.fafoe.narf.at> <20130104154940.GD1430@mole.fafoe.narf.at> <20130106141708.GA1418@mole.fafoe.narf.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6 Jan 2013, at 14:17, Stefan Farfeleder wrote:

> On Fri, Jan 04, 2013 at 04:49:41PM +0100, Stefan Farfeleder wrote:
>> Here's a minimal test case that reproduces the bug:
> [...]
>=20
> Until someone fixes this bug, could we apply something like this as a
> work-around?
>=20
> Stefan
>=20
> Index: gnu/lib/libgcc/Makefile
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- gnu/lib/libgcc/Makefile	(revision 245055)
> +++ gnu/lib/libgcc/Makefile	(working copy)
> @@ -6,6 +6,8 @@
> SHLIB_NAME=3D	libgcc_s.so.1
> SHLIBDIR?=3D	/lib
>=20
> +CC=3D	gcc
> +
> .include <bsd.own.mk>
> #
> # libgcc is linked in last and thus cannot depend on ssp symbols =
coming

This will break the build entirely for those of us who build without =
gcc, and as we are planning on removing gcc entirely by the 10.0 =
timeframe we should be encouraging people to do this, not discouraging =
it.

Does compiling at a lower optimisation level (-O1?  -O0) work as a =
temporary fix?

David





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EA4BC8F5-A501-4E4A-A223-7572B9A65758>