From owner-svn-src-all@FreeBSD.ORG Wed Jan 5 13:36:07 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CF2A1065674; Wed, 5 Jan 2011 13:36:07 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 59E588FC20; Wed, 5 Jan 2011 13:36:07 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:b1c7:6e17:2223:c629] (unknown [IPv6:2001:7b8:3a7:0:b1c7:6e17:2223:c629]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 92CF85C5A; Wed, 5 Jan 2011 14:36:06 +0100 (CET) Message-ID: <4D2473C6.40102@FreeBSD.org> Date: Wed, 05 Jan 2011 14:36:06 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.14pre) Gecko/20110104 Lanikai/3.1.8pre MIME-Version: 1.0 To: John Baldwin References: <201101042051.p04KpSGk054564@svn.freebsd.org> <20110105011635.GA4952@freebsd.org> <20110105121910.GA1841@tops.skynet.lt> <201101050759.50877.jhb@freebsd.org> In-Reply-To: <201101050759.50877.jhb@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, Alexander Best , Gleb Kurtsou , src-committers@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r216977 - in head/libexec/rtld-elf: amd64 i386 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2011 13:36:07 -0000 On 2011-01-05 13:59, John Baldwin wrote: >> Why not to add NO_HWFLOAT knob (or similar) into makefile >> infrastructure. And set CFLAGS accordingly, depending on CC, arch, etc. >> These flags are getting rather common in tree. > > It strikes me that we really want clang/gcc to have some sort of > '-mno-hwfloat' so we don't keep having to add new flags in the future. This is not just about floats, clang can also use SSE/AVX instructions for e.g. memset(), memcpy() and the like, or even for structure assignments. As I replied to Alexander, it's probably better to just put such "lowest common denominator for an arch" flags into sys.mk or bsd.cpu.mk.