Skip to content

Commit

Permalink
Add CFI directives to x86-64 pthread_rwlock_{rd,wr)lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Aug 10, 2009
1 parent 78fd882 commit 1bc2b97
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2009-08-10 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
directives.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.

2009-08-10 Andreas Schwab <schwab@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
Expand Down
4 changes: 3 additions & 1 deletion nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
/* Copyright (C) 2002, 2003, 2005, 2007, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
Expand Down Expand Up @@ -30,6 +30,7 @@
.type __pthread_rwlock_rdlock,@function
.align 16
__pthread_rwlock_rdlock:
cfi_startproc
xorq %r10, %r10

/* Get the lock. */
Expand Down Expand Up @@ -167,6 +168,7 @@ __pthread_rwlock_rdlock:
subq $MUTEX, %rdi
#endif
jmp 13b
cfi_endproc
.size __pthread_rwlock_rdlock,.-__pthread_rwlock_rdlock

.globl pthread_rwlock_rdlock
Expand Down
4 changes: 3 additions & 1 deletion nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
/* Copyright (C) 2002, 2003, 2005, 2007, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
Expand Down Expand Up @@ -30,6 +30,7 @@
.type __pthread_rwlock_wrlock,@function
.align 16
__pthread_rwlock_wrlock:
cfi_startproc
xorq %r10, %r10

/* Get the lock. */
Expand Down Expand Up @@ -155,6 +156,7 @@ __pthread_rwlock_wrlock:
subq $MUTEX, %rdi
#endif
jmp 13b
cfi_endproc
.size __pthread_rwlock_wrlock,.-__pthread_rwlock_wrlock

.globl pthread_rwlock_wrlock
Expand Down

0 comments on commit 1bc2b97

Please sign in to comment.