]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use LOAD_PIC_REG in i386 atanh.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 24 Sep 2015 21:48:22 +0000 (21:48 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 24 Sep 2015 21:48:22 +0000 (21:48 +0000)
sysdeps/i386/fpu/e_atanh.S, unlike all other functions in that
directory, loads the PIC register with its own code using
_GLOBAL_OFFSET_TABLE_, rather than with the LOAD_PIC_REG macro.  I see
no good reason for the difference; this patch makes it use the common
macro.

Tested for x86.

* sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
LOAD_PIC_REG.

ChangeLog
sysdeps/i386/fpu/e_atanh.S

index dbe8c77d3beb469d53a96669f35822bb5f744ccc..851dfc0918357cd91cc8f33ac612b2df18b12074 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
+       LOAD_PIC_REG.
+
        * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
        (FLT_CHECK_FORCE_UFLOW): Likewise.
        (DBL_CHECK_FORCE_UFLOW): Likewise.
index 5772bbf8025ab76255550997e41a454204a81a9b..448c76b96558c7a874f5067ab5cca28ec69a2f94 100644 (file)
@@ -55,11 +55,7 @@ ENTRY(__ieee754_atanh)
 7:
 
 #ifdef PIC
-       call    1f
-       cfi_adjust_cfa_offset (4)
-1:     popl    %edx
-       cfi_adjust_cfa_offset (-4)
-       addl    $_GLOBAL_OFFSET_TABLE_+[.-1b], %edx
+       LOAD_PIC_REG (dx)
 #endif
 
        andl    $0x80000000, %ecx // ECX == 0 iff X >= 0