r256555 - in /trunk/gcc: ChangeLog config/i386/...

hjl@gcc.gnu.org hjl@gcc.gnu.org
Thu Jan 11 20:44:00 GMT 2018


Author: hjl
Date: Thu Jan 11 20:44:46 2018
New Revision: 256555

URL: https://gcc.gnu.org/viewcvs?rev=256555&root=gcc&view=rev
Log:
i386: Align stack frame if argument is passed on stack

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.

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.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr83330.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list