Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2011 19:11:12 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        Gleb Kurtsou <gleb.kurtsou@gmail.com>, src-committers@freebsd.org, svn-src-all@freebsd.org, Dimitry Andric <dim@freebsd.org>, Nathan Whitehorn <nwhitehorn@freebsd.org>, svn-src-head@freebsd.org
Subject:   Re: svn commit: r216977 - in head/libexec/rtld-elf: amd64 i386
Message-ID:  <20110105191112.GB30449@freebsd.org>
In-Reply-To: <201101051146.26723.jhb@freebsd.org>
References:  <201101042051.p04KpSGk054564@svn.freebsd.org> <4D248540.3030602@freebsd.org> <4D24888B.50305@FreeBSD.org> <201101051146.26723.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed Jan  5 11, John Baldwin wrote:
> On Wednesday, January 05, 2011 10:04:43 am Dimitry Andric wrote:
> > On 2011-01-05 15:50, Nathan Whitehorn wrote:
> > > You would also want this to be cross-platform, in which case it's more
> > > than floating point. E.g. on powerpc, you also want to disable both FP
> > > and vector extensions, which use separate sets of instructions and
> > > registers.
> > 
> > Yeah, but in any case, hacking the compiler itself is not the proper way
> > to achieve this goal, IMHO.  It should go into sys.mk, or more
> > appropriately bsd.cpu.mk.  I'll make a crude diff for this tonight.
> 
> I think this is a workaround for a deficiency in the compiler, and one we are
> probably stuck with.  But it sure would be nice to have in the compiler.

ehm...i'm not an expert on clang, but why not ask the clang developers to add
a switch to disable all floating point extensions and for archs that use it
another switch to disable vector extensions? it seems the clang developers are
very open minded and open to new ideas.

cheers.
alex

> 
> -- 
> John Baldwin

-- 
a13x



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