diff options
author | Alan Modra <amodra@gmail.com> | 2021-04-05 15:27:02 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-04-05 15:27:02 +0930 |
commit | 5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5 (patch) | |
tree | 6555379b0c6943164d1497c9a9ef11c058b0a586 /gprof/gprof.c | |
parent | 306b445a6d4cc9dbb46ecdf22d9585fe9fc98115 (diff) | |
download | fsf-binutils-gdb-5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5.zip fsf-binutils-gdb-5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5.tar.gz fsf-binutils-gdb-5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5.tar.bz2 |
C99 gprof configury
Given C99 we don't need to check for setlocale. The patch also
adds setitimer checks so that they can be removed from bfd where they
aren't needed. According to the automake manual AC_ISC_POSIX is
obsolete, so that is removed. HAVE_SETMODE isn't checked anywhere,
so it is pointless to have a configure test for setmode.
* configure.ac: Check for sys/time.h and setitimer. Don't invoke
AC_ISC_POSIX. Don't check for setmode.
* gprof.c: Don't test HAVE_SETLOCALE.
* gprof.h: Include sys/time.h.
* configure: Regenerate.
* gconfig.in: Regenerate.
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r-- | gprof/gprof.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c index 678299e..6ed88ff 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -187,12 +187,10 @@ main (int argc, char **argv) Sym **cg = 0; int ch, user_specified = 0; -#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); #endif -#if defined (HAVE_SETLOCALE) setlocale (LC_CTYPE, ""); -#endif #ifdef ENABLE_NLS bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); |