From owner-freebsd-current@FreeBSD.ORG Thu Aug 15 19:13:04 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7F5D3ACA for ; Thu, 15 Aug 2013 19:13:04 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4335D23DF for ; Thu, 15 Aug 2013 19:13:04 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::9136:b916:3e04:163d] (unknown [IPv6:2001:7b8:3a7:0:9136:b916:3e04:163d]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2E9185C43; Thu, 15 Aug 2013 21:12:56 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: building i386 world on amd64 host: failed @svn From: Dimitry Andric In-Reply-To: <20130815183640.GR4972@kib.kiev.ua> Date: Thu, 15 Aug 2013 21:12:52 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <17A40261-A0DA-4070-990F-0D0777A5BE44@FreeBSD.org> <20130815183640.GR4972@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.1508) Cc: "freebsd-current@freebsd.org CURRENT" , Dmitry Morozovsky , Peter Wemm X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 15 Aug 2013 19:13:04 -0000 On Aug 15, 2013, at 20:36, Konstantin Belousov wrote: > On Thu, Aug 15, 2013 at 08:13:34PM +0200, Dimitry Andric wrote: >> Alternatively, we could attempt to figure out why gcc doesn't want to >> inline those 64 bit builtins on FreeBSD. It seems to have no problem >> doing so on the first Linux box I tried... > > Does the linux box defaults to pentium or higher for -march ? > 64 bit atomics cannot be implemented in usermode on i386 on > processors which do not have cmpxchg8b instruction. Ah yes, you are totally right, with -v it gives: COLLECT_GCC_OPTIONS='-O2' '-S' '-v' '-mtune=generic' '-march=i586' So we should really disable atomics for i486 and lower? Though I have understood that there also some pentiums without cmpxchg8b...