From d91798b31ac79914c234c4da7f7e7396bde2d85c Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Wed, 7 Mar 2018 14:32:00 -0500 Subject: Use SCANF_LDBL_IS_DBL instead of __ldbl_is_dbl. Change the callers of __vfscanf_internal and __vfwscanf_internal that want to treat 'long double' as another name for 'double' (all of which happen to be in sysdeps/ieee754/ldbl-opt/nldbl-compat.c) to communicate this via the new flags argument, instead of the per-thread variable __no_long_double and its __ldbl_is_dbl wrapper macro. Tested for powerpc and powerpc64le. --- stdio-common/vfscanf-internal.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'stdio-common/vfscanf-internal.c') diff --git a/stdio-common/vfscanf-internal.c b/stdio-common/vfscanf-internal.c index df79d91..19cfef0 100644 --- a/stdio-common/vfscanf-internal.c +++ b/stdio-common/vfscanf-internal.c @@ -332,10 +332,6 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr, struct char_buffer charbuf; scratch_buffer_init (&charbuf.scratch); - /* Temporarily honor the environmental mode bits. */ - if (__ldbl_is_dbl) - mode_flags |= SCANF_LDBL_IS_DBL; - #ifdef __va_copy __va_copy (arg, argptr); #else -- cgit v1.1