From owner-freebsd-current@FreeBSD.ORG Fri May 6 13:51:18 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6588C106566B for ; Fri, 6 May 2011 13:51:18 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id DC80D8FC13 for ; Fri, 6 May 2011 13:51:17 +0000 (UTC) Received: by fxm11 with SMTP id 11so3278246fxm.13 for ; Fri, 06 May 2011 06:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=7snulbTTifCMNnujUMCo3E3+DFWrbQCL3xoEl+r4MXI=; b=XPg4QkGpQKfpTl7067ImSiedeWaQNJZfHIok/AMsJXOPTpQfuoxbiq+ZLhoHyZHopf Fe0jtSuiorm7oGCipxH/NsYJbcOc5C0zvvUqaRdoEmlxTPzSUpbCbA6FkAWcVG/XIPq0 t9fsJAvo688E/TX4IRaq2syNK3iYODDazAde4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=cyt2g9GKrAA0iBzPg1s9AhRMjRCNTU9R5QVZJK77fT7Z1lBQgxElCSOtEGzjOx/2uX 5Q2wMtaheo0xJg0qlAbVyn4P2q7dS4CBgLwjWoTpfRgK+dnPoLqNZSN1ZwvRBpck6jCV OEKyEzOijZtM6D8jlbmt9iYZhQs/dQ1KuiWb4= Received: by 10.223.86.130 with SMTP id s2mr1610841fal.115.1304689876676; Fri, 06 May 2011 06:51:16 -0700 (PDT) Received: from localhost (raidz.torservers.net [46.19.138.242]) by mx.google.com with ESMTPS id l1sm2042280bkl.1.2011.05.06.06.51.10 (version=SSLv3 cipher=OTHER); Fri, 06 May 2011 06:51:13 -0700 (PDT) From: Pan Tsu To: Olivier Smedts References: <201105040107.p4417NTR048534@pozo.com> <4DC0F46C.3020806@FreeBSD.org> <201105041344.p44DiOId032272@pozo.com> <4DC160B9.5060004@FreeBSD.org> <4DC2A0E5.5040602@zedat.fu-berlin.de> <20110505135458.GA79622@freebsd.org> Date: Fri, 06 May 2011 17:50:58 +0400 In-Reply-To: (Olivier Smedts's message of "Thu, 5 May 2011 17:46:00 +0200") Message-ID: <86liykgcot.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-current@freebsd.org Subject: Re: Clang error make buildworld X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2011 13:51:18 -0000 Olivier Smedts writes: > 2011/5/5 Roman Divacky : >>> Because with clang, -march=native often breaks buildworld, while >>> -march=core2 is ok. >> >> Can you be more specific about this claim? On what CPU are seeing >> this breakage? > > Ok, with latest HEAD... > > %echo | gcc -march=native -E -v -x c -### - > Using built-in specs. > Target: amd64-undermydesk-freebsd > Configured with: FreeBSD/amd64 system compiler > Thread model: posix > gcc version 4.2.2 20070831 prerelease [FreeBSD] > "/usr/libexec/cc1" "-E" "-quiet" "-v" "-D_LONGLONG" "-" > "-march=core2" "-mtune=generic" > > With "-march=native", gcc adds "-mtune=generic" while the man pages > says "-march=xxx" sets "-mtune=xxx". No longer true for `-march=native' on more recent GCC versions. $ gcc46 -v -march=native foo.c |& fgrep cc1 # C2D E8400 ...-march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2... $ gcc46 -v -march=core2 foo.c |& fgrep cc1 ...-march=core2... $ clang -v -march=native foo.c |& grep -o -- '-target-cpu \w*' -target-cpu penryn