This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH 1/2] Add CFI directives for pthread_cond_(timed)wait


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~



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