------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-06-09 18:48 ------- With fresh CVS GCC, I get the following errors on libgcov.c:
../../gcc/gcc/libgcov.c: In function 'create_file_directory': ../../gcc/gcc/libgcov.c:110: warning: implicit declaration of function 'access' ../../gcc/gcc/libgcov.c:110: error: 'F_OK' undeclared (first use in this function) ../../gcc/gcc/libgcov.c:110: error: (Each undeclared identifier is reported only once ../../gcc/gcc/libgcov.c:110: error: for each function it appears in.) ../../gcc/gcc/libgcov.c:111: warning: implicit declaration of function 'mkdir' All are related to the same problem: mkdir and access functions are defined in the <io.h> system header, which is not included in libgcov.c (and not included either when configure tests if MKDIR_TAKES_ONE_ARG should be defined, that's why we can have "the too many arguments to function 'mkdir'" error when everything else is fixed). So what we need is that to test for the presence of <io.h> in configure.ac, and then include in libgcov.c when it's available. Can someone confirm whether such an approach is the right thing to do? -- What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21597