Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Jeff Law
On 10/24/14 04:12, Jan Beulich wrote: On 24.10.14 at 11:52, wrote: On Fri, Oct 24, 2014 at 11:18 AM, Jakub Jelinek wrote: On Fri, Oct 24, 2014 at 11:10:08AM +0200, Richard Biener wrote: For something in static storage, this seems OK. However, I think a hard register variable ought to be lef

Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Richard Biener
On Fri, Oct 24, 2014 at 12:12 PM, Jan Beulich wrote: On 24.10.14 at 11:52, wrote: >> On Fri, Oct 24, 2014 at 11:18 AM, Jakub Jelinek wrote: >>> On Fri, Oct 24, 2014 at 11:10:08AM +0200, Richard Biener wrote: >> For something in static storage, this seems OK. However, I think a hard >>

Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Jan Beulich
>>> On 24.10.14 at 11:52, wrote: > On Fri, Oct 24, 2014 at 11:18 AM, Jakub Jelinek wrote: >> On Fri, Oct 24, 2014 at 11:10:08AM +0200, Richard Biener wrote: >>> >> For something in static storage, this seems OK. However, I think a hard >>> >> register variable ought to be left alone -- even if w

Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Richard Biener
On Fri, Oct 24, 2014 at 11:18 AM, Jakub Jelinek wrote: > On Fri, Oct 24, 2014 at 11:10:08AM +0200, Richard Biener wrote: >> >> For something in static storage, this seems OK. However, I think a hard >> >> register variable ought to be left alone -- even if we can't spill it to >> >> a stack slot

Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Jakub Jelinek
On Fri, Oct 24, 2014 at 11:10:08AM +0200, Richard Biener wrote: > >> For something in static storage, this seems OK. However, I think a hard > >> register variable ought to be left alone -- even if we can't spill it to > >> a stack slot today, there's a reasonable chance we might add that > >> cap

Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Jan Beulich
>>> On 24.10.14 at 11:10, wrote: > On Fri, Oct 24, 2014 at 11:01 AM, Jan Beulich wrote: > On 23.10.14 at 20:13, wrote: >>> On 10/23/14 01:09, Jan Beulich wrote: >>> On 23.10.14 at 08:50, wrote: > On Thu, Oct 23, 2014 at 07:30:27AM +0100, Jan Beulich wrote: >> Function (or more n

Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Richard Biener
On Fri, Oct 24, 2014 at 11:01 AM, Jan Beulich wrote: On 23.10.14 at 20:13, wrote: >> On 10/23/14 01:09, Jan Beulich wrote: >> On 23.10.14 at 08:50, wrote: On Thu, Oct 23, 2014 at 07:30:27AM +0100, Jan Beulich wrote: > Function (or more narrow) scope static variables (as well as

Re: avoid alignment of static variables affecting stack's

2014-10-24 Thread Jan Beulich
>>> On 23.10.14 at 20:13, wrote: > On 10/23/14 01:09, Jan Beulich wrote: > On 23.10.14 at 08:50, wrote: >>> On Thu, Oct 23, 2014 at 07:30:27AM +0100, Jan Beulich wrote: Function (or more narrow) scope static variables (as well as others not placed on the stack) should also not have

Re: avoid alignment of static variables affecting stack's

2014-10-23 Thread Jeff Law
On 10/23/14 01:09, Jan Beulich wrote: On 23.10.14 at 08:50, wrote: On Thu, Oct 23, 2014 at 07:30:27AM +0100, Jan Beulich wrote: Function (or more narrow) scope static variables (as well as others not placed on the stack) should also not have any effect on the stack alignment. I noticed the iss

Re: avoid alignment of static variables affecting stack's

2014-10-23 Thread Jan Beulich
>>> On 23.10.14 at 08:50, wrote: > On Thu, Oct 23, 2014 at 07:30:27AM +0100, Jan Beulich wrote: >> Function (or more narrow) scope static variables (as well as others not >> placed on the stack) should also not have any effect on the stack >> alignment. I noticed the issue first with Linux'es dyna

Re: avoid alignment of static variables affecting stack's

2014-10-22 Thread Jakub Jelinek
On Thu, Oct 23, 2014 at 07:30:27AM +0100, Jan Beulich wrote: > Function (or more narrow) scope static variables (as well as others not > placed on the stack) should also not have any effect on the stack > alignment. I noticed the issue first with Linux'es dynamic_pr_debug() > construct using an 8-b