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

2011-01-05 Thread Alexander Best
On Wed Jan 5 11, John Baldwin wrote: > On Wednesday, January 05, 2011 3:38:16 pm Alexander Best wrote: > > On Wed Jan 5 11, John Baldwin wrote: > > > On Wednesday, January 05, 2011 2:59:20 pm Doug Barton wrote: > > > > On 01/05/2011 10:59, Alexander Best wrote: > > > > > > > > > judging from the

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

2011-01-05 Thread John Baldwin
On Wednesday, January 05, 2011 3:38:16 pm Alexander Best wrote: > On Wed Jan 5 11, John Baldwin wrote: > > On Wednesday, January 05, 2011 2:59:20 pm Doug Barton wrote: > > > On 01/05/2011 10:59, Alexander Best wrote: > > > > > > > judging from the discussion going on right now it seems those flag

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

2011-01-05 Thread John Baldwin
On Wednesday, January 05, 2011 3:29:57 pm Dimitry Andric wrote: > On 2011-01-05 21:08, John Baldwin wrote: > > My suggestion was that we ask clang to add a '-mno-whatever' and hopefully > > we > > could convince gcc to follow suit. clang developers seem to be fairly > > receptive, so I was hoping

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

2011-01-05 Thread Alexander Best
On Wed Jan 5 11, Doug Barton wrote: > On 01/05/2011 10:59, Alexander Best wrote: > > >judging from the discussion going on right now it seems those flags will be > >grouped together to form a new variable. so things will probably change > >shortly > >and fixing the order is probably not necessar

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

2011-01-05 Thread Alexander Best
On Wed Jan 5 11, John Baldwin wrote: > On Wednesday, January 05, 2011 2:59:20 pm Doug Barton wrote: > > On 01/05/2011 10:59, Alexander Best wrote: > > > > > judging from the discussion going on right now it seems those flags will > > > be > > > grouped together to form a new variable. so things

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

2011-01-05 Thread Dimitry Andric
On 2011-01-05 21:08, John Baldwin wrote: My suggestion was that we ask clang to add a '-mno-whatever' and hopefully we could convince gcc to follow suit. clang developers seem to be fairly receptive, so I was hoping one of our clang liaisons could suggest it. :) These options already exist, e.

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

2011-01-05 Thread John Baldwin
On Wednesday, January 05, 2011 2:59:20 pm Doug Barton wrote: > On 01/05/2011 10:59, Alexander Best wrote: > > > judging from the discussion going on right now it seems those flags will be > > grouped together to form a new variable. so things will probably change > > shortly > > and fixing the or

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

2011-01-05 Thread Doug Barton
On 01/05/2011 10:59, Alexander Best wrote: judging from the discussion going on right now it seems those flags will be grouped together to form a new variable. so things will probably change shortly and fixing the order is probably not necessary. Much better to fix the problem properly now tha

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

2011-01-05 Thread Alexander Best
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

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

2011-01-05 Thread Alexander Best
On Wed Jan 5 11, Dimitry Andric wrote: > On 2011-01-05 02:16, Alexander Best wrote: > >the sorting order for these flags seems to be: > > > >-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 > > > >see 'grep -R "\-no-sse" /usr/src'. maybe the sorting order should stay > >consistent? > > I copied t

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

2011-01-05 Thread Warner Losh
On 01/05/2011 05:59, John Baldwin wrote: On Wednesday, January 05, 2011 7:19:10 am Gleb Kurtsou wrote: On (05/01/2011 01:16), Alexander Best wrote: On Tue Jan 4 11, Dimitry Andric wrote: Author: dim Date: Tue Jan 4 20:51:28 2011 New Revision: 216977 URL: http://svn.freebsd.org/changeset/base

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

2011-01-05 Thread John Baldwin
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

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

2011-01-05 Thread Dimitry Andric
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

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

2011-01-05 Thread John Baldwin
On Wednesday, January 05, 2011 9:50:40 am Nathan Whitehorn wrote: > On 01/05/11 08:28, John Baldwin wrote: > > On Wednesday, January 05, 2011 8:36:06 am Dimitry Andric wrote: > >> On 2011-01-05 13:59, John Baldwin wrote: > Why not to add NO_HWFLOAT knob (or similar) into makefile > infras

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

2011-01-05 Thread Nathan Whitehorn
On 01/05/11 08:28, John Baldwin wrote: On Wednesday, January 05, 2011 8:36:06 am Dimitry Andric wrote: 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 getti

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

2011-01-05 Thread John Baldwin
On Wednesday, January 05, 2011 8:36:06 am Dimitry Andric wrote: > 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.

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

2011-01-05 Thread David Schultz
On Wed, Jan 05, 2011, John Baldwin wrote: > On Wednesday, January 05, 2011 7:19:10 am Gleb Kurtsou wrote: > > On (05/01/2011 01:16), Alexander Best wrote: > > > On Tue Jan 4 11, Dimitry Andric wrote: > > > > Author: dim > > > > Date: Tue Jan 4 20:51:28 2011 > > > > New Revision: 216977 > > > > UR

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

2011-01-05 Thread Dimitry Andric
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-hwfloa

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

2011-01-05 Thread John Baldwin
On Wednesday, January 05, 2011 7:19:10 am Gleb Kurtsou wrote: > On (05/01/2011 01:16), Alexander Best wrote: > > On Tue Jan 4 11, Dimitry Andric wrote: > > > Author: dim > > > Date: Tue Jan 4 20:51:28 2011 > > > New Revision: 216977 > > > URL: http://svn.freebsd.org/changeset/base/216977 > > > >

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

2011-01-05 Thread Gleb Kurtsou
On (05/01/2011 01:16), Alexander Best wrote: > On Tue Jan 4 11, Dimitry Andric wrote: > > Author: dim > > Date: Tue Jan 4 20:51:28 2011 > > New Revision: 216977 > > URL: http://svn.freebsd.org/changeset/base/216977 > > > > Log: > > On amd64 and i386, tell the compiler to refrain from generatin

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

2011-01-05 Thread Dimitry Andric
On 2011-01-05 02:16, Alexander Best wrote: the sorting order for these flags seems to be: -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 see 'grep -R "\-no-sse" /usr/src'. maybe the sorting order should stay consistent? I copied the order from sys/conf/kern.mk, lines 69 and 70: -mf

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

2011-01-04 Thread Alexander Best
On Wed Jan 5 11, Alexander Best wrote: > On Tue Jan 4 11, Dimitry Andric wrote: > > Author: dim > > Date: Tue Jan 4 20:51:28 2011 > > New Revision: 216977 > > URL: http://svn.freebsd.org/changeset/base/216977 > > > > Log: > > On amd64 and i386, tell the compiler to refrain from generating SSE

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

2011-01-04 Thread Alexander Best
On Tue Jan 4 11, Dimitry Andric wrote: > Author: dim > Date: Tue Jan 4 20:51:28 2011 > New Revision: 216977 > URL: http://svn.freebsd.org/changeset/base/216977 > > Log: > On amd64 and i386, tell the compiler to refrain from generating SSE, > 3DNow, MMX and floating point instructions in rtld

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

2011-01-04 Thread Dimitry Andric
Author: dim Date: Tue Jan 4 20:51:28 2011 New Revision: 216977 URL: http://svn.freebsd.org/changeset/base/216977 Log: On amd64 and i386, tell the compiler to refrain from generating SSE, 3DNow, MMX and floating point instructions in rtld-elf. Otherwise, _rtld_bind() (and whatever it call