This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcov and EH
- To: egcs-bugs at cygnus dot com
- Subject: gcov and EH
- From: Peter Schmid <schmid at ltoi dot iap dot physik dot tu-darmstadt dot de>
- Date: Mon, 1 Dec 1997 01:22:55 +0100 (MEST)
Is gcov and exception handling fully supported?
Compiling with -fprofile-arcs -ftest-coverage crashes the compiler on
the following files.
Is this a bug or does gcov work only with c programs?
Peter Schmid
cat t.C
void
swap(int& x, int& y) throw()
{
int tmp = x;
x = y;
y = tmp;
}
main()
{
int i = 5;
int j = 7;
swap(i, j);
}
g++ -fprofile-arcs -ftest-coverage t.C
t.C: In function `void swap(int &, int &)':
t.C:7: Internal compiler error.
t.C:7: Please submit a full bug report to `egcs-bugs@cygnus.com'.
or in the testsuite/g++.olddeja/g++.mike directory:
g++ eh32.C -fprofile-arcs -ftest-coverage -W -Wall
eh32.C: In method `Base::~Base()':
eh32.C:11: Internal compiler error.
eh32.C:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.
g++ eh33.C -fprofile-arcs -ftest-coverage -W -Wall
eh33.C: In function `int foo()':
eh33.C:8: warning: return-type defaults to `int'
eh33.C:8: Internal compiler error.
eh33.C:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
g++ eh34.C -fprofile-arcs -ftest-coverage -W -Wall
eh34.C: In function `int foo()':
eh34.C:8: warning: return-type defaults to `int'
eh34.C:8: Internal compiler error.
eh34.C:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
g++ eh50.C -fprofile-arcs -ftest-coverage -W -Wall
eh50.C: In function `int foo<int>(int)':
eh50.C:8: Internal compiler error.
eh50.C:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
g++ eh51.C -fprofile-arcs -ftest-coverage -W -Wall
eh51.C: In function `int foo<int>(int)':
eh51.C:8: Internal compiler error.
eh51.C:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
g++ eh9.C -fprofile-arcs -ftest-coverage -W -Wall
eh9.C: In function `int main()':
eh9.C:4: Internal compiler error.
eh9.C:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.
g++ p9706.C -fprofile-arcs -ftest-coverage -W -Wall
p9706.C: In function `void operator delete(void *)':
p9706.C:10: Internal compiler error.
p9706.C:10: Please submit a full bug report to `egcs-bugs@cygnus.com'.