diff options
author | Alan Modra <amodra@gmail.com> | 2021-04-05 15:30:22 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-04-05 15:30:22 +0930 |
commit | 87b9f2556d5f47328f3ac59088e9be0759959ebb (patch) | |
tree | ec6646d13ad2269930deb9a49418dee23600d567 /binutils/nm.c | |
parent | ab2af25e83abb7da1619e8ae678b9286d5448d67 (diff) | |
download | gdb-87b9f2556d5f47328f3ac59088e9be0759959ebb.zip gdb-87b9f2556d5f47328f3ac59088e9be0759959ebb.tar.gz gdb-87b9f2556d5f47328f3ac59088e9be0759959ebb.tar.bz2 |
C99 binutils configury
* configure.ac: Assume long long is available. Don't test for
strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
strcoll, setlocale, setmode or location of time_t. Don't check
for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
(AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
* sysdep.h: Don't include alloca-conf.h, include config.h instead.
Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
locale.h, string.h and stdlib.h unconditionally. Remove various
fallback declarations. Assume long long is available.
* addr2line.c: Don't test HAVE_SETLOCALE.
* ar.c: Likewise.
* coffdump.c: Likewise.
* dlltool.c: Likewise.
* dllwrap.c: Likewise.
* elfedit.c: Likewise.
* nm.c: Likewise.
* objcopy.c: Likewise.
* objdump.c: Likewise.
* readelf.c: Likewise.
* size.c: Likewise.
* srconv.c: Likewise.
* strings.c: Likewise.
* sysdump.c: Likewise.
* windmc.c: Likewise.
* windres.c: Likewise.
* bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
* dwarf.c: Include limits.h unconditionally. Assume long long
is available.
* nm.c: Don't test HAVE_STRCOLL.
* readelf.c: Don't test HAVE_WCHAR_H.
* strings.c: Assume long long is available.
* syslex.l: Include string.h unconditionally.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 64105ca..82ccec6 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -633,7 +633,6 @@ non_numeric_forward (const void *P_x, const void *P_y) if (xn == NULL) return -1; -#ifdef HAVE_STRCOLL /* Solaris 2.5 has a bug in strcoll. strcoll returns invalid values when confronted with empty strings. */ if (*yn == '\0') @@ -642,9 +641,6 @@ non_numeric_forward (const void *P_x, const void *P_y) return -1; return strcoll (xn, yn); -#else - return strcmp (xn, yn); -#endif } static int @@ -1788,13 +1784,11 @@ main (int argc, char **argv) int c; int retval; -#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); #endif -#if defined (HAVE_SETLOCALE) setlocale (LC_CTYPE, ""); setlocale (LC_COLLATE, ""); -#endif bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); |