Re: [PATCH] i386: Align stack frame if argument is passed on stack

2018-01-12 Thread Uros Bizjak
On Thu, Jan 11, 2018 at 10:17 PM, H.J. Lu wrote: > On Thu, Jan 11, 2018 at 11:07 AM, Uros Bizjak wrote: >> On Wed, Jan 10, 2018 at 9:40 PM, H.J. Lu wrote: >>> When a function call is removed, it may become a leaf function. But if >>> argument may be passed on stack, we need to align the stack f

Re: [PATCH] i386: Align stack frame if argument is passed on stack

2018-01-11 Thread H.J. Lu
On Thu, Jan 11, 2018 at 11:07 AM, Uros Bizjak wrote: > On Wed, Jan 10, 2018 at 9:40 PM, H.J. Lu wrote: >> When a function call is removed, it may become a leaf function. But if >> argument may be passed on stack, we need to align the stack frame when >> there is no tail call. >> >> Tested on Lin

Re: [PATCH] i386: Align stack frame if argument is passed on stack

2018-01-11 Thread Uros Bizjak
On Wed, Jan 10, 2018 at 9:40 PM, H.J. Lu wrote: > When a function call is removed, it may become a leaf function. But if > argument may be passed on stack, we need to align the stack frame when > there is no tail call. > > Tested on Linux/i686 and Linux/x86-64. > > OK for trunk? > > H.J. > --- >