Skip to content

Commit

Permalink
Fix unwind info in 32bit SSE2/SSSE3 strncpy
Browse files Browse the repository at this point in the history
  • Loading branch information
hjl-tools authored and drepper committed Jun 25, 2011
1 parent 8912479 commit acb0d73
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2011-06-24 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.

* sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
info.

2011-06-22 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/i386/i686/multiarch/strcpy-sse2.S
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# define PARMS 16
# define ENTRANCE PUSH(%ebx); PUSH(%esi); PUSH(%edi)
# define RETURN POP(%edi); POP(%esi); POP(%ebx); ret; \
CFI_PUSH(%ebx); CFI_PUSH(%edi); CFI_PUSH(%edi);
CFI_PUSH(%ebx); CFI_PUSH(%esi); CFI_PUSH(%edi);

# ifdef SHARED
# define JMPTBL(I, B) I - B
Expand Down
4 changes: 4 additions & 0 deletions sysdeps/i386/i686/multiarch/strcpy-ssse3.S
Original file line number Diff line number Diff line change
Expand Up @@ -3220,6 +3220,8 @@ L(ExitTail16):
# endif
RETURN
# ifdef USE_AS_STRNCPY
CFI_PUSH (%esi)
CFI_PUSH (%edi)
L(StrncpyLeaveCase2OrCase3):
test %eax, %eax
jnz L(Aligned64LeaveCase2)
Expand Down Expand Up @@ -3978,6 +3980,8 @@ L(StrncpyExit15):
lea 1(%esi), %esi
jmp L(CopyFrom1To16BytesCase3)

CFI_POP (%esi)
CFI_POP (%edi)
.p2align 4
L(ExitTail0):
movl %edx, %eax
Expand Down

0 comments on commit acb0d73

Please sign in to comment.