re PR libgcc/65038 ([regression 5] Unable to find ftw.h for libgcov-util.c)
PR target/65038 * config.in: Regenerated. * configure: Likewise. * configure.ac (AC_HEADER_STDC): Add explicit. (AC_CHECK_HEADERS): Check for default headers plus for ftw.h one. * libgcov-util.c (gcov_read_profile_dir): Disable use of ftw-function, if header not found. (ftw_read_file): Don't translate if ftw header isn't present. From-SVN: r221055
This commit is contained in:
parent
d1783ae53c
commit
a2a5609b4b
5 changed files with 1290 additions and 401 deletions
|
@ -1,3 +1,16 @@
|
|||
2015-02-27 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
PR target/65038
|
||||
* config.in: Regenerated.
|
||||
* configure: Likewise.
|
||||
* configure.ac (AC_HEADER_STDC): Add explicit.
|
||||
(AC_CHECK_HEADERS): Check for default headers
|
||||
plus for ftw.h one.
|
||||
* libgcov-util.c (gcov_read_profile_dir): Disable use
|
||||
of ftw-function, if header not found.
|
||||
(ftw_read_file): Don't translate if ftw header isn't
|
||||
present.
|
||||
|
||||
2015-02-23 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
PR target/65181
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
/* Define to 1 if the target assembler supports thread-local storage. */
|
||||
#undef HAVE_CC_TLS
|
||||
|
||||
/* Define to 1 if you have the <ftw.h> header file. */
|
||||
#undef HAVE_FTW_H
|
||||
|
||||
/* Define if _Unwind_GetIPInfo is available. */
|
||||
#undef HAVE_GETIPINFO
|
||||
|
||||
|
|
1663
libgcc/configure
vendored
1663
libgcc/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -47,6 +47,12 @@ AC_SUBST(libgcc_topdir)
|
|||
AC_CONFIG_AUX_DIR($libgcc_topdir)
|
||||
AC_CONFIG_HEADER(auto-target.h:config.in)
|
||||
|
||||
AC_CHECK_HEADERS(inttypes.h \
|
||||
stdint.h stdlib.h \
|
||||
ftw.h unistd.h sys/stat.h sys/types.h \
|
||||
string.h strings.h memory.h)
|
||||
AC_HEADER_STDC
|
||||
|
||||
AC_ARG_ENABLE(shared,
|
||||
[ --disable-shared don't provide a shared libgcc],
|
||||
[
|
||||
|
|
|
@ -52,7 +52,9 @@ void gcov_set_verbose (void)
|
|||
|
||||
#include "obstack.h"
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_FTW_H
|
||||
#include <ftw.h>
|
||||
#endif
|
||||
|
||||
static void tag_function (unsigned, unsigned);
|
||||
static void tag_blocks (unsigned, unsigned);
|
||||
|
@ -380,6 +382,7 @@ read_gcda_file (const char *filename)
|
|||
return obj_info;
|
||||
}
|
||||
|
||||
#ifdef HAVE_FTW_H
|
||||
/* This will be called by ftw(). It opens and read a gcda file FILENAME.
|
||||
Return a non-zero value to stop the tree walk. */
|
||||
|
||||
|
@ -417,6 +420,7 @@ ftw_read_file (const char *filename,
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initializer for reading a profile dir. */
|
||||
|
||||
|
@ -451,7 +455,9 @@ gcov_read_profile_dir (const char* dir_name, int recompute_summary ATTRIBUTE_UNU
|
|||
fnotice (stderr, "%s is not a directory\n", dir_name);
|
||||
return NULL;
|
||||
}
|
||||
#ifdef HAVE_FTW_H
|
||||
ftw (".", ftw_read_file, 50);
|
||||
#endif
|
||||
ret = chdir (pwd);
|
||||
free (pwd);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue