0ad6e19
commit b1b8f5d89d06a994773e22ad4b7fe1036b37f8ab
0ad6e19
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
0ad6e19
Date:   Thu Apr 14 12:21:53 2016 +0200
0ad6e19
0ad6e19
    Fix strfmon_l: Use specified locale for number formatting [BZ #19633]
0ad6e19
    
0ad6e19
    The commit 985fc132f23dbb83de76c5af9e783ef1b5900148
0ad6e19
    "strfmon_l: Use specified locale for number formatting [BZ #19633]"
0ad6e19
    introduced an elf/check-abi-libc testfailure due to __printf_fp_l
0ad6e19
    on architectures which use sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h.
0ad6e19
    
0ad6e19
    This patch uses libc_hidden_def instead of ldbl_hidden_def.
0ad6e19
    The ldbl_strong_alias is removed due to the rename of ___printf_fp_l
0ad6e19
    to __printf_fp_l.
0ad6e19
    
0ad6e19
    ChangeLog:
0ad6e19
    
0ad6e19
    	* stdio-common/printf_fp.c (__printf_fp_l):
0ad6e19
    	Rename ___printf_fp_l to __printf_fp_l and
0ad6e19
    	remove strong alias. Use libc_hidden_def instead
0ad6e19
    	of ldbl_hidden_def macro.
0ad6e19
0ad6e19
Index: b/stdio-common/printf_fp.c
0ad6e19
===================================================================
0ad6e19
--- a/stdio-common/printf_fp.c
0ad6e19
+++ b/stdio-common/printf_fp.c
0ad6e19
@@ -209,9 +209,9 @@ hack_digit (struct hack_digit_param *p)
0ad6e19
 }
0ad6e19
 
0ad6e19
 int
0ad6e19
-___printf_fp_l (FILE *fp, locale_t loc,
0ad6e19
-		const struct printf_info *info,
0ad6e19
-		const void *const *args)
0ad6e19
+__printf_fp_l (FILE *fp, locale_t loc,
0ad6e19
+	       const struct printf_info *info,
0ad6e19
+	       const void *const *args)
0ad6e19
 {
0ad6e19
   /* The floating-point value to output.  */
0ad6e19
   union
0ad6e19
@@ -1251,14 +1251,13 @@ ___printf_fp_l (FILE *fp, locale_t loc,
0ad6e19
   }
0ad6e19
   return done;
0ad6e19
 }
0ad6e19
-ldbl_hidden_def (___printf_fp_l, __printf_fp_l)
0ad6e19
-ldbl_strong_alias (___printf_fp_l, __printf_fp_l)
0ad6e19
+libc_hidden_def (__printf_fp_l)
0ad6e19
 
0ad6e19
 int
0ad6e19
 ___printf_fp (FILE *fp, const struct printf_info *info,
0ad6e19
 	      const void *const *args)
0ad6e19
 {
0ad6e19
-  return ___printf_fp_l (fp, _NL_CURRENT_LOCALE, info, args);
0ad6e19
+  return __printf_fp_l (fp, _NL_CURRENT_LOCALE, info, args);
0ad6e19
 }
0ad6e19
 ldbl_hidden_def (___printf_fp, __printf_fp)
0ad6e19
 ldbl_strong_alias (___printf_fp, __printf_fp)