This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: gcov reports error in Mingw


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]