This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[regression] another i386-mingw32 build failure


The following patch causes a build failure on i386-mingw:

2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
            H.J. Lu  <hongjiu.lu@intel.com>
        * libgcov.c (create_file_directory): New function. Create
        directory for the given file name.

Build was successful before that, but a fresh CVS source fails 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 three (access, F_OK and mkdir) are defined in <io.h> on MinGW. But then, the MinGW version of mkdir only takes one argument (char *path). I don't know how this latter point can be dealt with.

--
FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]