This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA patch i386]: Prepare x64 prologue using positive offsets for frame-pointer


Hello Richard,

here is the follow-up patch about x64-frame-pointer patch. It requires
the -mfentry patch to be applied before to apply clean.
I allowed this patch just for amd64 architectures, as I see here no
much reason to support it for x86 at the moment, too. As this
call-frame needs the -mfentry support, which is limited for x86 to
non-pic compilation.

ChangeLog

	* config/i386/i386.c (override_options): Add check.
	(ix86_compute_frame_layout): Set hard_frame_pointer_offset
	for -mframe-x64.
	(expand_prologue): Add emit of -mframe-x64.
	(ix86_expand_epilogue): Likewise.
	* config/i386/i386.opt (-mframe-x64): New.
	* doc/invoke.texi (mframe-x64): Add documentation.

Tested for x86_64-pc-mingw32, i686-pc-mingw32, and i686-pc-cygwin. Ok
to apply after the -mfentry patch got approval?

Regards,
Kai


-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: x64_pro.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]