This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Remove unused typedefs and macros from _G_config.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Tue, 11 Sep 2012 19:53:22 +0000
- Subject: Remove unused typedefs and macros from _G_config.h
This patch removes various unused typedefs and macros from
_G_config.h. None of these _G_* typedef or macro names are used
anywhere in glibc.
Tested x86_64 that the code generated for glibc's shared libraries is
the same before and after the patch.
2012-09-11 Joseph Myers <joseph@codesourcery.com>
* sysdeps/generic/_G_config.h (_G_int16_t): Remove.
(_G_int32_t): Likewise.
(_G_uint16_t): Likewise.
(_G_uint32_t): Likewise.
(_G_HAVE_BOOL): Likewise.
(_G_HAVE_ATEXIT): Likewise.
(_G_HAVE_LONG_DOUBLE_IO): Likewise.
(_G_HAVE_IO_FILE_OPEN): Likewise.
* sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
(_G_int32_t): Likewise.
(_G_uint16_t): Likewise.
(_G_uint32_t): Likewise.
(_G_HAVE_BOOL): Likewise.
(_G_HAVE_ATEXIT): Likewise.
(_G_HAVE_LONG_DOUBLE_IO): Likewise.
(_G_HAVE_IO_FILE_OPEN): Likewise.
* sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
(_G_int32_t): Likewise.
(_G_uint16_t): Likewise.
(_G_uint32_t): Likewise.
(_G_HAVE_BOOL): Likewise.
(_G_HAVE_ATEXIT): Likewise.
(_G_HAVE_LONG_DOUBLE_IO): Likewise.
(_G_HAVE_IO_FILE_OPEN): Likewise.
diff --git a/sysdeps/generic/_G_config.h b/sysdeps/generic/_G_config.h
index 769b10f..71f67f0 100644
--- a/sysdeps/generic/_G_config.h
+++ b/sysdeps/generic/_G_config.h
@@ -50,24 +50,14 @@ typedef union
} _G_iconv_t;
#endif
-typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
-typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
-typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
-typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
-
-#define _G_HAVE_BOOL 1
-
/* These library features are always available in the GNU C library. */
-#define _G_HAVE_ATEXIT 1
#define _G_HAVE_SYS_WAIT 1
#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_LONG_DOUBLE_IO 1
-#define _G_HAVE_IO_FILE_OPEN 1
#define _G_HAVE_IO_GETLINE_INFO 1
#define _G_IO_IO_FILE_VERSION 0x20001
diff --git a/sysdeps/gnu/_G_config.h b/sysdeps/gnu/_G_config.h
index a0dc659..dd6e649 100644
--- a/sysdeps/gnu/_G_config.h
+++ b/sysdeps/gnu/_G_config.h
@@ -50,16 +50,8 @@ typedef union
} _G_iconv_t;
#endif
-typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
-typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
-typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
-typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
-
-#define _G_HAVE_BOOL 1
-
/* These library features are always available in the GNU C library. */
-#define _G_HAVE_ATEXIT 1
#define _G_HAVE_SYS_WAIT 1
#define _G_NEED_STDARG_H 1
#define _G_va_list __gnuc_va_list
@@ -67,8 +59,6 @@ typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
#define _G_HAVE_PRINTF_FP 1
#define _G_HAVE_MMAP 1
#define _G_HAVE_MREMAP 1
-#define _G_HAVE_LONG_DOUBLE_IO 1
-#define _G_HAVE_IO_FILE_OPEN 1
#define _G_HAVE_IO_GETLINE_INFO 1
#define _G_IO_IO_FILE_VERSION 0x20001
diff --git a/sysdeps/mach/hurd/_G_config.h b/sysdeps/mach/hurd/_G_config.h
index ae10071..965cc71 100644
--- a/sysdeps/mach/hurd/_G_config.h
+++ b/sysdeps/mach/hurd/_G_config.h
@@ -50,24 +50,14 @@ typedef union
} _G_iconv_t;
#endif
-typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
-typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
-typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
-typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
-
-#define _G_HAVE_BOOL 1
-
/* These library features are always available in the GNU C library. */
-#define _G_HAVE_ATEXIT 1
#define _G_HAVE_SYS_WAIT 1
#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_LONG_DOUBLE_IO 1
-#define _G_HAVE_IO_FILE_OPEN 1
#define _G_HAVE_IO_GETLINE_INFO 1
#define _G_IO_IO_FILE_VERSION 0x20001
--
Joseph S. Myers
joseph@codesourcery.com