From owner-freebsd-toolchain@FreeBSD.ORG Tue Nov 19 08:10:31 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mandree.no-ip.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E21CE37; Tue, 19 Nov 2013 08:10:31 +0000 (UTC) Received: from [IPv6:::1] (localhost6.localdomain6 [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id BAA0F23CE7C; Tue, 19 Nov 2013 09:10:29 +0100 (CET) Message-ID: <528B1CF5.4020706@FreeBSD.org> Date: Tue, 19 Nov 2013 09:10:29 +0100 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Dimitry Andric Subject: Re: clang++ 3.3 issue (excessively slow compile vs. gcc 4.6 in just one file of a port) References: <528A8481.9010200@FreeBSD.org> <62194A12-1B41-48F6-8434-BA2181411020@FreeBSD.org> <528A93BF.3020707@FreeBSD.org> <528A9A88.80904@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EMAbdm0umH5I7xo2CoMjH4lE9a2Pt0FEH" Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 08:10:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EMAbdm0umH5I7xo2CoMjH4lE9a2Pt0FEH Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 19.11.2013 08:49, schrieb Dimitry Andric: > On 18 Nov 2013, at 23:54, Matthias Andree wrote: > ... >> Uploaded. http://people.freebsd.org/~mandree/ has: >> >> : the xzipped .ii >> file (unpacked: 6.5 MB) >> >> := >> compiler command line (make VERBOSE=3D1 MAKE_JOBS_UNSAFE=3Dyes) >> and early warnings. >=20 > Ok, this looks like http://llvm.org/PR16474 , which has a relatively > simple fix. I have attached it, can you please try it out? You can > just apply the patch to /usr/src and do: >=20 > make -C /usr/src/lib/clang > make -C /usr/src/usr.bin/clang/clang > sudo make -C /usr/src/usr.bin/clang/clang install >=20 > It should basically recompile just one file, and re-link the clang > executable. I tried building ipsharpen.ii at -O3, and it uses about > 20 seconds now (on my relatively slow VM). Dimitry, thanks. The patch speeds up the compile by one and a half orders of magnitude, and we're down to 30 s for my VM and compiling the .ii file. The .cc now compiles in 22 s, rather than 500 s. Excellent, problem solved! Can we commit this (what the LLVM PR calls "regression") fix so it becomes part of 10.0-RELEASE? Best regards Matthias --EMAbdm0umH5I7xo2CoMjH4lE9a2Pt0FEH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlKLHPUACgkQvmGDOQUufZWUCQCcCARaLwLmgWdYBdrF3/SN0d14 G3cAn2Xy+Bp0a55m6MMCZRYBD/yexsTR =AvLQ -----END PGP SIGNATURE----- --EMAbdm0umH5I7xo2CoMjH4lE9a2Pt0FEH--