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

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

2018-01-11 Thread H.J. Lu
ks. -- H.J. From 28be904309cb8e6568e26f47a9746c709ac65fb8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <hjl.to...@gmail.com> Date: Thu, 6 Jul 2017 08:58:46 -0700 Subject: [PATCH] i386: Align stack frame if argument is passed on stack When a function call is removed, it may become

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

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

2018-01-10 Thread H.J. Lu
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. --- gcc/ PR target/83330 * config/i386/i386.c