This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: gcov reports error in Mingw
- To: gcc-bugs at gcc dot gnu dot org
- Subject: RE: gcov reports error in Mingw
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Mon, 5 Nov 2001 17:53:06 +1100 (EST)
- Cc: nakai dot akiya at canon dot co dot jp
> I'm using Mingw-gcc and tring to use 'gcov'.
> In some sources, gcov reports an error and no coverage measurment is
done.
>
> I found the code '0x0a' was expanded to '0x0a 0x0d' in *.bb *.bbg *.da
> binary files,
> and fix some gcc source code to output data files in binary mode.
> Now 'gcov' is running quite well with the change.
>
> It might be a trouble for Mingw(PC)environment only,
> but I hope to fix it in next release of Mingw-gcc because making 'gcc' in
> non-Unix machine was very troublesome.
This bug is fixed in gcc 3.x.
Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
* gcov.c (DIR_SEPARATOR): Provide default.
(output_data): Add test for MS-DOS format absolute filename.
(fancy_abort): Correct program name.
(open_files): Open all files in binary mode.
* libgcc2.c (__bb_exit_func): Likewise.
The patch should be in next maintenance release of 2.95.x for mingw.
Danny
http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.