This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: unwind table not properly populated
On Sun, Sep 20, 2009 at 12:49 PM, Kai Tietz <ktietz70@googlemail.com> wrote:
> 2009/9/18 Eric Botcazou <ebotcazou@adacore.com>:
>> Hi Pascal,
>>
>>> The unwind table does not get populated on Win64 because a long is 32
>>> bits and an address is 64 bits. The attached patch fixes this problem.
>>
>> The 'L' now looks superfluous in
>>
>> ?mask = ((_Unwind_Ptr)1L << (mask << 3)) - 1;
>>
>> You also don't need to put the "why" in the ChangeLog, just the "what".
>>
>> --
>> Eric Botcazou
>>
>
> Ok, I adjusted the patch and backported it for 4.4 branch, too.
>
> 2009-09-20 ?Kai Tietz ?<kai.tietz@onevision.com>
> ? ? ? ? ? ?Pascal Obry ?<obry@adacore.com>
>
> ? ? ? ? ? ?* unwind-dw2-fde.c (classify_object_over_fdes):
> ? ? ? ? ? ?Cast the constant 1 to _Unwind_Ptr.
> ? ? ? ? ? ?(add_fdes): Likewise.
> ? ? ? ? ? ?(linear_search_fdes): Likewise.
>
> Ok for apply to trunk and 4.4 branch,
Ok for both.
Thanks,
Richard.
> Cheers,
> Kai
>
> --
> | ?(\_/) This is Bunny. Copy and paste
> | (='.'=) Bunny into your signature to help
> | (")_(") him gain world domination
>