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

NightStrike nightstrike@gmail.com
Wed Jul 14 19:29:00 GMT 2010


On Mon, Jul 5, 2010 at 2:17 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> 2010/7/4 Kai Tietz <ktietz70@googlemail.com>:
>> Hello,
>>
>> this patch prepares for x64 SEH, that frame-pointer points at end of
>> stack-prologue. This is required for x64, because the SEH unwind
>> information can't express negative offsets for stack.
>>
>> ChangeLog
>>
>> 2010-07-04  Kai Tietz
>>
>>        * config/i386/i386.c (ix86_compute_frame_layout): Let frame's
>>        hard_frame_pointer_offset point to end of prologue.
>>        (ix86_expand_prologue): Handle x64 frame-pointer prologue.
>>        (ix86_expand_epilogue): Handle x64 frame-pointer epilogue.
>>
>> Tested for i686-pc-cygwin, x86_64-pc-mingw32. Ok for apply?
>>
>> Regards,
>> Kai
>
> This update patch avoids, that for profiling-built the x64
> frame-layout gets used. It would lead to issues, caused by profiling
> code, which assumes old stack-frame layout.
>
> Regards,
> Kai
>
>
> --
> |  (\_/) This is Bunny. Copy and paste
> | (='.'=) Bunny into your signature to help
> | (")_(") him gain world domination
>

Ping



More information about the Gcc-patches mailing list