[Bug gcov-profile/61889] [4.10 Regression] gcov-tool.c uses nftw, ftw.h
ktietz at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 23 15:17:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61889
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu.org
--- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Yes, issue is here that ftw API is used for cleanup.
...
static int
unlink_profile_dir (const char *path)
{
return nftw(path, unlink_gcda_file, 64, FTW_DEPTH | FTW_PHYS);
}
...
This method isn't present on none glibc-systems. So there should be at least a
header-check (HAVE_FTW_H) be added to gcov-tool.c and to configure.
As Richard mentioned, libiberty would be a good place to add implementation.
More information about the Gcc-bugs
mailing list