[gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread James
Volker Armin Hemmann googlemail.com> writes: > >> http://www.agner.org/optimize/calling_conventions.pdf > > > > Not sure what you're trying to say. > > > > that simd is not save in kernel if not carefully guarded. > > Really people, just don't fuck around with

Re: [gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread Volker Armin Hemmann
Am 02.05.2015 um 14:38 schrieb Nikos Chantziaras: > On 02/05/15 15:10, Volker Armin Hemmann wrote: >> Am 02.05.2015 um 14:06 schrieb Nikos Chantziaras: >>> On 02/05/15 14:37, Volker Armin Hemmann wrote: Am 02.05.2015 um 13:25 schrieb Nikos Chantziaras: >>> >>> The kernel uses -O2 and s

[gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread Nikos Chantziaras
On 02/05/15 15:10, Volker Armin Hemmann wrote: Am 02.05.2015 um 14:06 schrieb Nikos Chantziaras: On 02/05/15 14:37, Volker Armin Hemmann wrote: Am 02.05.2015 um 13:25 schrieb Nikos Chantziaras: The kernel uses -O2 and several -march variants (e.g. -march=core2). Several other options are used

Re: [gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread Volker Armin Hemmann
Am 02.05.2015 um 14:06 schrieb Nikos Chantziaras: > On 02/05/15 14:37, Volker Armin Hemmann wrote: >> Am 02.05.2015 um 13:25 schrieb Nikos Chantziaras: > > The kernel uses -O2 and several -march variants (e.g. -march=core2). > Several other options are used to prevent GCC from generatin

[gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread Nikos Chantziaras
On 02/05/15 14:37, Volker Armin Hemmann wrote: Am 02.05.2015 um 13:25 schrieb Nikos Chantziaras: The kernel uses -O2 and several -march variants (e.g. -march=core2). Several other options are used to prevent GCC from generating unsuitable code. Specifying another -march variant does not affect

Re: [gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread Volker Armin Hemmann
Am 02.05.2015 um 13:25 schrieb Nikos Chantziaras: > On 02/05/15 14:19, Volker Armin Hemmann wrote: >> Am 02.05.2015 um 07:04 schrieb Nikos Chantziaras: >>> On 01/05/15 10:44, Andrew Savchenko wrote: On Fri, 1 May 2015 05:09:51 + (UTC) Martin Vaeth wrote: > Andrew Savchenko wrote:

[gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread Nikos Chantziaras
On 02/05/15 14:19, Volker Armin Hemmann wrote: Am 02.05.2015 um 07:04 schrieb Nikos Chantziaras: On 01/05/15 10:44, Andrew Savchenko wrote: On Fri, 1 May 2015 05:09:51 + (UTC) Martin Vaeth wrote: Andrew Savchenko wrote: That's why kernel makes sure that no floating point instructions sn

Re: [gentoo-user] Re: CFLAGs for kernel compilation

2015-05-02 Thread Volker Armin Hemmann
Am 02.05.2015 um 07:04 schrieb Nikos Chantziaras: > On 01/05/15 10:44, Andrew Savchenko wrote: >> On Fri, 1 May 2015 05:09:51 + (UTC) Martin Vaeth wrote: >>> Andrew Savchenko wrote: That's why kernel makes sure that no floating point instructions sneaks in using CFLAGS, you may

[gentoo-user] Re: CFLAGs for kernel compilation

2015-05-01 Thread Nikos Chantziaras
On 01/05/15 10:44, Andrew Savchenko wrote: On Fri, 1 May 2015 05:09:51 + (UTC) Martin Vaeth wrote: Andrew Savchenko wrote: That's why kernel makes sure that no floating point instructions sneaks in using CFLAGS, you may see a lot of -mno-${intrucion_set} flags when running make -V. So i

[gentoo-user] Re: CFLAGs for kernel compilation

2015-05-01 Thread James
Andrew Savchenko gentoo.org> writes: > > I can hardly imagine that otherwise the compiler converts integer > > or pointer arithmetic into floating point arithmetics, or is > > this really the case for certain flags? If yes, why should these > > flags *ever* be useful? > > I mean: The context sw

Re: [gentoo-user] Re: CFLAGs for kernel compilation

2015-05-01 Thread Andrew Savchenko
On Fri, 1 May 2015 05:09:51 + (UTC) Martin Vaeth wrote: > Andrew Savchenko wrote: > > > > That's why kernel makes sure that no floating point instructions > > sneaks in using CFLAGS, you may see a lot of -mno-${intrucion_set} > > flags when running make -V. > > So it should be sufficient that

[gentoo-user] Re: CFLAGs for kernel compilation

2015-04-30 Thread Martin Vaeth
Andrew Savchenko wrote: > > That's why kernel makes sure that no floating point instructions > sneaks in using CFLAGS, you may see a lot of -mno-${intrucion_set} > flags when running make -V. So it should be sufficient that the kernel does not use "float" or "double", shouldn't it? I can hardly i

[gentoo-user] Re: CFLAGs for kernel compilation

2015-04-29 Thread Nikos Chantziaras
On 30/04/15 02:52, Nikos Chantziaras wrote: On 29/04/15 16:35, Holger Hoffstätte wrote: On Wed, 29 Apr 2015 15:18:23 +0200, Ralf wrote: Damn, you're absolutely right. I just tested it using make V=1. kernel make does override CFLAGs from the outside. But that's interesting: my processor supp

[gentoo-user] Re: CFLAGs for kernel compilation

2015-04-29 Thread Nikos Chantziaras
On 29/04/15 16:35, Holger Hoffstätte wrote: On Wed, 29 Apr 2015 15:18:23 +0200, Ralf wrote: Damn, you're absolutely right. I just tested it using make V=1. kernel make does override CFLAGs from the outside. But that's interesting: my processor supports -march=core-avx2 and none of the linux k

[gentoo-user] Re: CFLAGs for kernel compilation

2015-04-29 Thread Holger Hoffstätte
On Wed, 29 Apr 2015 15:18:23 +0200, Ralf wrote: > Damn, you're absolutely right. > > I just tested it using make V=1. > kernel make does override CFLAGs from the outside. > > But that's interesting: my processor supports -march=core-avx2 and none > of the linux kernel processor family uses this