svn commit: r216977 - in head/libexec/rtld-elf: amd64 i386

Alexander Best arundel at freebsd.org
Wed Jan 5 19:11:12 UTC 2011


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


More information about the svn-src-head mailing list