diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2005-07-13 16:28:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2005-07-13 09:28:25 -0700 |
commit | 4969c0d82c8bc9a2815883e3c968d81287c83483 (patch) | |
tree | 5dcc938a73f1b1d0d9190bda9b9610df0e6e1978 /gcc/libgcov.c | |
parent | 98b6d47767360e010bc243995ff1091cc2ef9c3d (diff) | |
download | gcc-4969c0d82c8bc9a2815883e3c968d81287c83483.zip gcc-4969c0d82c8bc9a2815883e3c968d81287c83483.tar.gz gcc-4969c0d82c8bc9a2815883e3c968d81287c83483.tar.bz2 |
linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
* config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
(TARGET_POSIX_IO): This.
* config/darwin.h: Likewise.
* config/freebsd.h: Likewise.
* config/linux.h: Likewise.
* config/lynx.h: Likewise.
* config/netbsd.h: Likewise.
* config/rs6000/linux64.h: Likewise.
* config/rs6000/linux.h: Likewise.
* config/s390/tpf.h: Likewise.
* config/sh/embed-elf.h: Likewise.
* config/sparc/linux64.h: Likewise.
* config/sparc/linux.h: Likewise.
* config/svr4.h: Likewise.
* gcov-io.h: Likewise.
* doc/tm.texi: Updated.
* libgcov.c (create_file_directory): Defined only if
TARGET_POSIX_IO is defined.
(gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
is defined.
From-SVN: r101973
Diffstat (limited to 'gcc/libgcov.c')
-rw-r--r-- | gcc/libgcov.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/libgcov.c b/gcc/libgcov.c index 09f3522..de44d91 100644 --- a/gcc/libgcov.c +++ b/gcc/libgcov.c @@ -91,6 +91,7 @@ static gcov_unsigned_t gcov_crc32; /* Size of the longest file name. */ static size_t gcov_max_filename = 0; +#ifdef TARGET_POSIX_IO /* Make sure path component of the given FILENAME exists, create missing directories. FILENAME must be writable. Returns zero on success, or -1 if an error occurred. */ @@ -122,6 +123,7 @@ create_file_directory (char *filename) }; return 0; } +#endif /* Check if VERSION of the info block PTR matches libgcov one. Return 1 on success, or zero in case of versions mismatch. @@ -299,6 +301,7 @@ gcov_exit (void) if (!gcov_open (gi_filename)) { +#ifdef TARGET_POSIX_IO /* Open failed likely due to missed directory. Create directory and retry to open file. */ if (create_file_directory (gi_filename)) @@ -306,6 +309,7 @@ gcov_exit (void) fprintf (stderr, "profiling:%s:Skip\n", gi_filename); continue; } +#endif if (!gcov_open (gi_filename)) { fprintf (stderr, "profiling:%s:Cannot open\n", gi_filename); |