Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Dave Neuer
On 7/20/05, Simon Strandman <[EMAIL PROTECTED]> wrote: > Denis Vlasenko skrev: > > > > >Why do you care? I bet that differences between i686 code and pentium4 code > >are well below noise level. > >-- > >vda > > > For x86_64 the flags -mno-sse -mno-mmx -mno-sse2 -mno-3dnow are always > used for

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Simon Strandman
Denis Vlasenko skrev: On Wednesday 20 July 2005 12:25, Ivan Yosifov wrote: Also, I believe that the -march=pentium4 option /was/ actually used up until kernel 2.6.10 where it was dropped because of a risk that some versions of gcc would cause the kernel to use SSE registers for data

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Ivan Yosifov
On Wed, 2005-07-20 at 13:38 +0300, Denis Vlasenko wrote: > On Wednesday 20 July 2005 12:25, Ivan Yosifov wrote: > > > > > Also, I believe that the -march=pentium4 option /was/ actually used up > > > > > until kernel 2.6.10 where it was dropped because of a risk that some > > > > > versions of gcc

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Denis Vlasenko
On Wednesday 20 July 2005 12:25, Ivan Yosifov wrote: > > > > Also, I believe that the -march=pentium4 option /was/ actually used up > > > > until kernel 2.6.10 where it was dropped because of a risk that some > > > > versions of gcc would cause the kernel to use SSE registers for data > > > >

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Ivan Yosifov
> > > > > Also, I believe that the -march=pentium4 option /was/ actually used up > > > until kernel 2.6.10 where it was dropped because of a risk that some > > > versions of gcc would cause the kernel to use SSE registers for data > > > movement (which is a no-no). > > > > > > > You seem

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Jan Engelhardt
>> https://www.redhat.com/archives/fedora-devel-list/2005-January/msg00742.html > >Interesting. This may seem reasonable for a Linux distribution, but less for those who compile kernelballs just for themselves. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Kerin Millar
On Wed, 2005-07-20 at 11:23 +0300, Ivan Yosifov wrote: > On Wed, 2005-07-20 at 09:03 +0100, Kerin Millar wrote: > > On Tue, 19 Jul 2005 21:35:51 +0300, Ivan Yosifov wrote: > > > > Also, I believe that the -march=pentium4 option /was/ actually used up > > until kernel 2.6.10 where it was

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Ivan Yosifov
On Wed, 2005-07-20 at 09:03 +0100, Kerin Millar wrote: > On Tue, 19 Jul 2005 21:35:51 +0300, Ivan Yosifov wrote: > > > > > -march implies -mtune and also implies thing like -msse2 for the > > instruction set where applicable. > > I think -march=pentium4 is equivalent to -mmmx -msse -msse2 > >

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Jan Engelhardt
>Also, I believe that the -march=pentium4 option /was/ actually used up >until kernel 2.6.10 where it was dropped because of a risk that some >versions of gcc would cause the kernel to use SSE registers for data >movement (which is a no-no). In that case, -mno-sse should have been used. Jan

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Kerin Millar
On Tue, 19 Jul 2005 21:35:51 +0300, Ivan Yosifov wrote: > -march implies -mtune and also implies thing like -msse2 for the > instruction set where applicable. > I think -march=pentium4 is equivalent to -mmmx -msse -msse2 > -mtune=pentium4 ( if I have not fogotten anything ). > Pentium4

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Kerin Millar
On Tue, 19 Jul 2005 21:35:51 +0300, Ivan Yosifov wrote: snip -march implies -mtune and also implies thing like -msse2 for the instruction set where applicable. I think -march=pentium4 is equivalent to -mmmx -msse -msse2 -mtune=pentium4 ( if I have not fogotten anything ). Pentium4

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Jan Engelhardt
Also, I believe that the -march=pentium4 option /was/ actually used up until kernel 2.6.10 where it was dropped because of a risk that some versions of gcc would cause the kernel to use SSE registers for data movement (which is a no-no). In that case, -mno-sse should have been used. Jan

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Ivan Yosifov
On Wed, 2005-07-20 at 09:03 +0100, Kerin Millar wrote: On Tue, 19 Jul 2005 21:35:51 +0300, Ivan Yosifov wrote: snip -march implies -mtune and also implies thing like -msse2 for the instruction set where applicable. I think -march=pentium4 is equivalent to -mmmx -msse -msse2

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Kerin Millar
On Wed, 2005-07-20 at 11:23 +0300, Ivan Yosifov wrote: On Wed, 2005-07-20 at 09:03 +0100, Kerin Millar wrote: On Tue, 19 Jul 2005 21:35:51 +0300, Ivan Yosifov wrote: snip Also, I believe that the -march=pentium4 option /was/ actually used up until kernel 2.6.10 where it was dropped

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Jan Engelhardt
https://www.redhat.com/archives/fedora-devel-list/2005-January/msg00742.html Interesting. This may seem reasonable for a Linux distribution, but less for those who compile kernelballs just for themselves. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Ivan Yosifov
snip Also, I believe that the -march=pentium4 option /was/ actually used up until kernel 2.6.10 where it was dropped because of a risk that some versions of gcc would cause the kernel to use SSE registers for data movement (which is a no-no). You seem right. I fetched a

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Denis Vlasenko
On Wednesday 20 July 2005 12:25, Ivan Yosifov wrote: Also, I believe that the -march=pentium4 option /was/ actually used up until kernel 2.6.10 where it was dropped because of a risk that some versions of gcc would cause the kernel to use SSE registers for data movement (which is a

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Ivan Yosifov
On Wed, 2005-07-20 at 13:38 +0300, Denis Vlasenko wrote: On Wednesday 20 July 2005 12:25, Ivan Yosifov wrote: Also, I believe that the -march=pentium4 option /was/ actually used up until kernel 2.6.10 where it was dropped because of a risk that some versions of gcc would cause the

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Simon Strandman
Denis Vlasenko skrev: On Wednesday 20 July 2005 12:25, Ivan Yosifov wrote: Also, I believe that the -march=pentium4 option /was/ actually used up until kernel 2.6.10 where it was dropped because of a risk that some versions of gcc would cause the kernel to use SSE registers for data

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-20 Thread Dave Neuer
On 7/20/05, Simon Strandman [EMAIL PROTECTED] wrote: Denis Vlasenko skrev: Why do you care? I bet that differences between i686 code and pentium4 code are well below noise level. -- vda For x86_64 the flags -mno-sse -mno-mmx -mno-sse2 -mno-3dnow are always used for compilation. Why

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Lee Revell
On Tue, 2005-07-19 at 22:15 +0200, Jan Engelhardt wrote: > >AFAIK it's not possible to use SSE and MME in kernel mode, since these > >registers aren't preserved (it would be expensive). > > Floating point is anyway a no-no in the kernel. However, there are a few exceptions like mmx_memcpy. Lee

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Jan Engelhardt
>AFAIK it's not possible to use SSE and MME in kernel mode, since these >registers aren't preserved (it would be expensive). Floating point is anyway a no-no in the kernel. Jan Engelhardt -- | Alphagate Systems, http://alphagate.hopto.org/ - To unsubscribe from this list: send the line

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Bodo Eggert
Ivan Yosifov <[EMAIL PROTECTED]> wrote: > -march implies -mtune and also implies thing like -msse2 for the > instruction set where applicable. > I think -march=pentium4 is equivalent to -mmmx -msse -msse2 > -mtune=pentium4 ( if I have not fogotten anything ). > Pentium4 supports things like sse2

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Ivan Yosifov
On Tue, 2005-07-19 at 19:52 +0200, Jan Engelhardt wrote: > >Hello, > > > >If I set the CPU type to be amd64 in kernel config, the kernel is built > >with -march=k8. If I set it to be k6, the kernel is built with > >-march=k6. If I set the CPU type to be Pentium4, the kernel is built > >with

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Jan Engelhardt
>Hello, > >If I set the CPU type to be amd64 in kernel config, the kernel is built >with -march=k8. If I set it to be k6, the kernel is built with >-march=k6. If I set the CPU type to be Pentium4, the kernel is built >with -march=i686 -mtune=pentium4. Why is not the for-P4 kernel built >with

Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Ivan Yosifov
Hello, If I set the CPU type to be amd64 in kernel config, the kernel is built with -march=k8. If I set it to be k6, the kernel is built with -march=k6. If I set the CPU type to be Pentium4, the kernel is built with -march=i686 -mtune=pentium4. Why is not the for-P4 kernel built with

Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Ivan Yosifov
Hello, If I set the CPU type to be amd64 in kernel config, the kernel is built with -march=k8. If I set it to be k6, the kernel is built with -march=k6. If I set the CPU type to be Pentium4, the kernel is built with -march=i686 -mtune=pentium4. Why is not the for-P4 kernel built with

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Jan Engelhardt
Hello, If I set the CPU type to be amd64 in kernel config, the kernel is built with -march=k8. If I set it to be k6, the kernel is built with -march=k6. If I set the CPU type to be Pentium4, the kernel is built with -march=i686 -mtune=pentium4. Why is not the for-P4 kernel built with

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Ivan Yosifov
On Tue, 2005-07-19 at 19:52 +0200, Jan Engelhardt wrote: Hello, If I set the CPU type to be amd64 in kernel config, the kernel is built with -march=k8. If I set it to be k6, the kernel is built with -march=k6. If I set the CPU type to be Pentium4, the kernel is built with -march=i686

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Bodo Eggert
Ivan Yosifov [EMAIL PROTECTED] wrote: -march implies -mtune and also implies thing like -msse2 for the instruction set where applicable. I think -march=pentium4 is equivalent to -mmmx -msse -msse2 -mtune=pentium4 ( if I have not fogotten anything ). Pentium4 supports things like sse2 and mmx

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Jan Engelhardt
AFAIK it's not possible to use SSE and MME in kernel mode, since these registers aren't preserved (it would be expensive). Floating point is anyway a no-no in the kernel. Jan Engelhardt -- | Alphagate Systems, http://alphagate.hopto.org/ - To unsubscribe from this list: send the line

Re: Noob question. Why is the for-pentium4 kernel built with -march=i686 ?

2005-07-19 Thread Lee Revell
On Tue, 2005-07-19 at 22:15 +0200, Jan Engelhardt wrote: AFAIK it's not possible to use SSE and MME in kernel mode, since these registers aren't preserved (it would be expensive). Floating point is anyway a no-no in the kernel. However, there are a few exceptions like mmx_memcpy. Lee - To