[Bug target/14291] [3.4/3.5 Regression] -fprofile-arcs fails (unresolved symbol)

dannysmith at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Mar 21 22:12:00 GMT 2004


------- Additional Comments From dannysmith at gcc dot gnu dot org  2004-03-21 22:11 -------
Mark, just to be clear, are asking that the following patch be applied to
gcc-3.4.0 branch _only_?

Danny

Index: gcov-io.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcov-io.h,v
retrieving revision 1.47
diff -c -3 -p -r1.47 gcov-io.h
*** gcov-io.h	10 Oct 2003 17:04:45 -0000	1.47
--- gcov-io.h	21 Mar 2004 22:02:24 -0000
*************** gcov_rewrite (void)
*** 584,589 ****
--- 584,592 ----
    fseek (gcov_var.file, 0L, SEEK_SET);
  }
  
+ #ifdef __MINGW32__
+ #define ftruncate _chsize
+ #endif
  static inline void
  gcov_truncate (void)
  {

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14291



More information about the Gcc-bugs mailing list