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