From bd8ec6a7cdf75d6441b8a784e962cf177f237b34 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Mon, 22 Mar 2004 02:33:30 +0000 Subject: 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 --- gcc/ChangeLog | 6 ++++++ gcc/gcov-io.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b61522f..f67a556 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-03-22 Danny Smith + + PR target/14291 + * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for + __MINGW32__. + 2004-03-21 Ulrich Weigand * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2 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 . Completely remangled by Nathan Sidwell . @@ -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) { -- cgit v1.1