re PR target/14291 (-fprofile-arcs fails (unresolved symbol))
authorDanny Smith <dannysmith@users.sourceforge.net>
Mon, 22 Mar 2004 02:33:30 +0000 (02:33 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Mon, 22 Mar 2004 02:33:30 +0000 (02:33 +0000)
PR target/14291
* gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
__MINGW32__.

From-SVN: r79809

gcc/ChangeLog
gcc/gcov-io.h

index b61522fe7327de87ec26286c4acdc6795e2cff17..f67a5564aed88dcb1bd94472b16f0f3dc86fe6ba 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       PR target/14291
+       * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
+       __MINGW32__.
+
 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
index 0254632eb8ae895ee54d8b4b517596f972ecc2c3..e83c5163c90c52cfb36be42b9b47fb931ed4de94 100644 (file)
@@ -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)
 {