[PATCH] Better .debug_aranges fix (PR debug/48253, take 3)

Jason Merrill jason@redhat.com
Mon Mar 28 15:19:00 GMT 2011


On 03/28/2011 10:34 AM, Jakub Jelinek wrote:
> So perhaps
>    if (fde->dw_fde_second_begin&&  fde->dw_fde_switch_cfi == NULL)
>      {
>        /* If the first partition contained no CFI adjustments, the
> 	 CIE opcodes apply to the whole first partition.  */
>        *list_tail = new_loc_list (build_cfa_loc (&last_cfa, offset),
> 				 fde->dw_fde_begin, fde->dw_fde_end, section);
>        list_tail =&(*list_tail)->dw_loc_next;
>        start_label = last_label = fde->dw_fde_second_begin;
>      }
> instead and put this right before the for cycle (so that last_cfa
> is already computed).

Sounds good.

Jason



More information about the Gcc-patches mailing list