Patchwork Correct some ia64 libm_alias_float_other calls [committed]

login
register
mail settings
Submitter Joseph Myers
Date Dec. 6, 2017, 9:51 p.m.
Message ID <alpine.DEB.2.20.1712062150500.19115@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/24765/
State New
Headers show

Comments

Joseph Myers - Dec. 6, 2017, 9:51 p.m.
This patch corrects three ia64 libm_alias_float_other calls so they
generate the intended _Float32 aliases when such aliases are enabled.

Tested with build-many-glibcs.py for ia64-linux-gnu (that installed
stripped shared libraries are unchanged when applied to current
sources, and that this enables compilation tests to pass when used in
conjunction with other _Float32 patches).  Committed.

2017-12-06  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
	second argument to libm_alias_float_other.
	* sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
	second argument to libm_alias_float_other.
	* sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
	argument to libm_alias_float_other.

Patch

diff --git a/sysdeps/ia64/fpu/e_exp2f.S b/sysdeps/ia64/fpu/e_exp2f.S
index 2bda62c..77bc6ea 100644
--- a/sysdeps/ia64/fpu/e_exp2f.S
+++ b/sysdeps/ia64/fpu/e_exp2f.S
@@ -469,7 +469,7 @@  OUT_RANGE_exp2:
 ;;
 
 GLOBAL_LIBM_END(__exp2f)
-libm_alias_float_other (__exp2, __exp2)
+libm_alias_float_other (__exp2, exp2)
 #ifdef SHARED
 .symver __exp2f,exp2f@@GLIBC_2.27
 .weak __exp2f_compat
diff --git a/sysdeps/ia64/fpu/e_log2f.S b/sysdeps/ia64/fpu/e_log2f.S
index fa66303..5ca3bd6 100644
--- a/sysdeps/ia64/fpu/e_log2f.S
+++ b/sysdeps/ia64/fpu/e_log2f.S
@@ -492,7 +492,7 @@  SPECIAL_log2f:
 }
 
 GLOBAL_LIBM_END(__log2f)
-libm_alias_float_other (__log2, __log2)
+libm_alias_float_other (__log2, log2)
 #ifdef SHARED
 .symver __log2f,log2f@@GLIBC_2.27
 .weak __log2f_compat
diff --git a/sysdeps/ia64/fpu/e_powf.S b/sysdeps/ia64/fpu/e_powf.S
index 96df8db..7449f8c 100644
--- a/sysdeps/ia64/fpu/e_powf.S
+++ b/sysdeps/ia64/fpu/e_powf.S
@@ -2003,7 +2003,7 @@  POW_OVER_UNDER_ERROR:
 ;;
 
 GLOBAL_LIBM_END(__powf)
-libm_alias_float_other (__pow, __pow)
+libm_alias_float_other (__pow, pow)
 #ifdef SHARED
 .symver __powf,powf@@GLIBC_2.27
 .weak __powf_compat