[PATCH 1/2] Add CFI directives for pthread_cond_(timed)wait

Richard Henderson rth@twiddle.net
Tue Nov 17 16:28:00 GMT 2009


On 11/17/2009 05:35 AM, Dinakar Guniguntala wrote:
>   	addl	$FRAME_SIZE, %esp
> -.Laddl:
> +	cfi_adjust_cfa_offset(-FRAME_SIZE);

.cfi_remember_state before the adjust.

>   18:	popl	%ebx
> -.Lpop_ebx:
> +	cfi_adjust_cfa_offset(-4)
> +	cfi_restore(%edi)

Wrong register restored.

>   	ret
>
> +	cfi_adjust_cfa_offset(4 * 4 + FRAME_SIZE)
> +	cfi_offset(%ebp, -8)
> +	cfi_offset(%edi, -12)
> +	cfi_offset(%esi, -16)
> +	cfi_offset(%ebx, -20)

.cfi_restore_state.

Same changes in both copies.


r~



More information about the Libc-alpha mailing list