This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Remove _G_HAVE_PRINTF_FP
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Thu, 13 Sep 2012 00:02:06 +0000
- Subject: Remove _G_HAVE_PRINTF_FP
The macro _G_HAVE_PRINTF_FP in _G_config.h is only used in a condition
on whether to define _IO_USE_DTOA in libio.h. Nothing in glibc uses
_IO_USE_DTOA. So both macros are effectively unused, and this patch
removes them. Tested on x86_64 that it makes no difference to the
code generated for glibc's shared libraries.
2012-09-12 Joseph Myers <joseph@codesourcery.com>
* libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
* sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
* sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
* sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
diff --git a/libio/libio.h b/libio/libio.h
index bbfdd9d..14bb9a6 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -62,9 +62,6 @@
#endif /*!__P*/
#define _IO_UNIFIED_JUMPTABLES 1
-#ifndef _G_HAVE_PRINTF_FP
-# define _IO_USE_DTOA 1
-#endif
#ifndef EOF
# define EOF (-1)
diff --git a/sysdeps/generic/_G_config.h b/sysdeps/generic/_G_config.h
index 71f67f0..df08676 100644
--- a/sysdeps/generic/_G_config.h
+++ b/sysdeps/generic/_G_config.h
@@ -56,7 +56,6 @@ typedef union
#define _G_NEED_STDARG_H 1
#define _G_va_list __gnuc_va_list
-#define _G_HAVE_PRINTF_FP 1
#define _G_HAVE_MMAP 1
#define _G_HAVE_IO_GETLINE_INFO 1
diff --git a/sysdeps/gnu/_G_config.h b/sysdeps/gnu/_G_config.h
index dd6e649..7d71643 100644
--- a/sysdeps/gnu/_G_config.h
+++ b/sysdeps/gnu/_G_config.h
@@ -56,7 +56,6 @@ typedef union
#define _G_NEED_STDARG_H 1
#define _G_va_list __gnuc_va_list
-#define _G_HAVE_PRINTF_FP 1
#define _G_HAVE_MMAP 1
#define _G_HAVE_MREMAP 1
#define _G_HAVE_IO_GETLINE_INFO 1
diff --git a/sysdeps/mach/hurd/_G_config.h b/sysdeps/mach/hurd/_G_config.h
index 965cc71..0808a55 100644
--- a/sysdeps/mach/hurd/_G_config.h
+++ b/sysdeps/mach/hurd/_G_config.h
@@ -56,7 +56,6 @@ typedef union
#define _G_NEED_STDARG_H 1
#define _G_va_list __gnuc_va_list
-#define _G_HAVE_PRINTF_FP 1
#define _G_HAVE_MMAP 1
#define _G_HAVE_IO_GETLINE_INFO 1
--
Joseph S. Myers
joseph@codesourcery.com