On Thu, Jan 11, 2018 at 10:17 PM, H.J. Lu <hjl.to...@gmail.com> wrote:
> On Thu, Jan 11, 2018 at 11:07 AM, Uros Bizjak <ubiz...@gmail.com> wrote:
>> On Wed, Jan 10, 2018 at 9:40 PM, H.J. Lu <hongjiu...@intel.com> 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.
>>> ---
>>> gcc/
>>>
>>>         PR target/83330
>>>         * config/i386/i386.c (ix86_compute_frame_layout): Align stack
>>>         frame if argument is passed on stack.
>>>
>>> gcc/testsuite/
>>>
>>>         PR target/83330
>>>         * gcc.target/i386/pr83330.c: New test.
>>
>> LGTM.
>>
>
> Here is the backport for GCC 7.  OK for gcc-7-branch after a few days?

OK.

Thanks,
Uros.

Reply via email to