This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
update for c++/3639
- To: gcc-bugs at gcc dot gnu dot org
- Subject: update for c++/3639
- From: Janis Johnson <janis187 at us dot ibm dot com>
- Date: Thu, 20 Sep 2001 09:26:34 -0700
c++/3639 points out a case for which the .bb file produced with
-ftest-coverage has an entry for a line number associated with the
wrong file, which at one time caused gcov to abort.
With GCC 3.0.1 and the mainline, the .bb file still has the same
misleading information but gcov no longer aborts; instead it issues the
message "Unexpected EOF while reading source file x.C" or else reports
call return information in the wrong file. This is due to a change in
gcov, although I haven't identified which particular change.
The remaining problem is annoying, but not serious since it doesn't
prevent the use of gcov with real C++ applications.
The test case provided in the PR is not preprocessed source, but in
order to demonstrate the problem gcov needs access to the original
source files. I've submitted a test case that used to cause gcov to
abort and support for testing gcov with C++ in
http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00684.html
http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00411.html
Can someone please add this information to GNATS?
Janis