Re: [10 PATCHES] inline functions to avoid stack overflow

2008-07-03 Thread Mikulas Patocka
On Tue, 1 Jul 2008, David Miller wrote: From: Mikulas Patocka <[EMAIL PROTECTED]> Date: Wed, 2 Jul 2008 00:39:35 -0400 (EDT) The ABI is very vague about it. The V9 ABI just displays that 6-word space in a figure bug doesn't say anything about it's usage. The V8 ABI just says that "the function

Re: [10 PATCHES] inline functions to avoid stack overflow

2008-07-01 Thread David Miller
From: Mikulas Patocka <[EMAIL PROTECTED]> Date: Wed, 2 Jul 2008 00:39:35 -0400 (EDT) > The ABI is very vague about it. The V9 ABI just displays that 6-word space > in a figure bug doesn't say anything about it's usage. The V8 ABI just > says that "the function may write incoming arguments there"

Re: [10 PATCHES] inline functions to avoid stack overflow

2008-07-01 Thread Mikulas Patocka
On Wed, 25 Jun 2008, David Miller wrote: From: Mikulas Patocka <[EMAIL PROTECTED]> Date: Wed, 25 Jun 2008 08:53:10 -0400 (EDT) Even worse, gcc doesn't use these additional bytes. If you try this: extern void f(int *i); void g() { int a; f(&a); } , it allocates additional

Re: [10 PATCHES] inline functions to avoid stack overflow

2008-06-26 Thread David Miller
From: "Bart Van Assche" <[EMAIL PROTECTED]> Date: Thu, 26 Jun 2008 08:32:35 +0200 > On Thu, Jun 26, 2008 at 12:09 AM, David Miller <[EMAIL PROTECTED]> wrote: > > The extra 16 bytes of space allocated is so that GCC can perform a > > secondary reload of a quad floating point value. It always has t

Re: [10 PATCHES] inline functions to avoid stack overflow

2008-06-25 Thread Bart Van Assche
On Thu, Jun 26, 2008 at 12:09 AM, David Miller <[EMAIL PROTECTED]> wrote: > From: Mikulas Patocka <[EMAIL PROTECTED]> > Date: Wed, 25 Jun 2008 08:53:10 -0400 (EDT) > >> Even worse, gcc doesn't use these additional bytes. If you try this: >> >> extern void f(int *i); >> void g() >> { >> int

Re: [10 PATCHES] inline functions to avoid stack overflow

2008-06-25 Thread David Miller
From: Mikulas Patocka <[EMAIL PROTECTED]> Date: Wed, 25 Jun 2008 08:53:10 -0400 (EDT) > Even worse, gcc doesn't use these additional bytes. If you try this: > > extern void f(int *i); > void g() > { > int a; > f(&a); > } > > , it allocates additional 16 bytes for the variable "

Re: [10 PATCHES] inline functions to avoid stack overflow

2008-06-25 Thread Mikulas Patocka
On Wed, 25 Jun 2008, Helge Hafting wrote: Mikulas Patocka wrote: Hi Here I'm sending 10 patches to inline various functions. To give you some understanding of sparc64, every function there uses big stack frame (at least 192 bytes). 128 bytes are required by architecture (16 64-bit registers