diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-03-22 02:33:30 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@gcc.gnu.org> | 2004-03-22 02:33:30 +0000 |
commit | bd8ec6a7cdf75d6441b8a784e962cf177f237b34 (patch) | |
tree | c3c17c09c588c5103c149166d419c760a73cc81f /gcc/gcov-io.h | |
parent | 07ef69611a8c1821ca8c5ee638576097b40b861a (diff) | |
download | gcc-bd8ec6a7cdf75d6441b8a784e962cf177f237b34.zip gcc-bd8ec6a7cdf75d6441b8a784e962cf177f237b34.tar.gz gcc-bd8ec6a7cdf75d6441b8a784e962cf177f237b34.tar.bz2 |
re PR target/14291 (-fprofile-arcs fails (unresolved symbol))
PR target/14291
* gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
__MINGW32__.
From-SVN: r79809
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r-- | gcc/gcov-io.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index 0254632..e83c516 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -1,6 +1,6 @@ /* File format for coverage information Copyright (C) 1996, 1997, 1998, 2000, 2002, - 2003 Free Software Foundation, Inc. + 2003, 2004 Free Software Foundation, Inc. Contributed by Bob Manson <manson@cygnus.com>. Completely remangled by Nathan Sidwell <nathan@codesourcery.com>. @@ -584,6 +584,9 @@ gcov_rewrite (void) fseek (gcov_var.file, 0L, SEEK_SET); } +#ifdef __MINGW32__ +#define ftruncate _chsize +#endif static inline void gcov_truncate (void) { |