Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jan 2011 14:36:06 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        svn-src-head@freebsd.org, Alexander Best <arundel@freebsd.org>, Gleb Kurtsou <gleb.kurtsou@gmail.com>, src-committers@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r216977 - in head/libexec/rtld-elf: amd64 i386
Message-ID:  <4D2473C6.40102@FreeBSD.org>
In-Reply-To: <201101050759.50877.jhb@freebsd.org>
References:  <201101042051.p04KpSGk054564@svn.freebsd.org> <20110105011635.GA4952@freebsd.org> <20110105121910.GA1841@tops.skynet.lt> <201101050759.50877.jhb@freebsd.org>

index | next in thread | previous in thread | raw e-mail

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.


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D2473C6.40102>