about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2018-03-07 14:32:00 -0500
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-12-05 18:15:42 -0200
commitd91798b31ac79914c234c4da7f7e7396bde2d85c (patch)
treeaa961c96c18a5951c556def7f8654d640b31a1f6 /stdio-common
parentb87eb3f8feb826ac48463f598fc10476055bee5a (diff)
downloadglibc-d91798b31ac79914c234c4da7f7e7396bde2d85c.tar.gz
glibc-d91798b31ac79914c234c4da7f7e7396bde2d85c.tar.xz
glibc-d91798b31ac79914c234c4da7f7e7396bde2d85c.zip
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.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/vfscanf-internal.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/stdio-common/vfscanf-internal.c b/stdio-common/vfscanf-internal.c
index df79d91eda..19cfef0906 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