Bug 14944 - [3.4 only] ICE when gcc reads *.gcda file of different version
: [3.4 only] ICE when gcc reads *.gcda file of different version
Status: RESOLVED FIXED
Product: gcc
Classification: Unclassified
Component: gcov-profile
: 3.4.0
: P2 normal
: 3.4.6
Assigned To: Not yet assigned to anyone
: http://gcc.gnu.org/ml/gcc-patches/200...
: ice-on-invalid-code, patch
:
:
  Show dependency treegraph
 
Reported: 2004-04-13 20:08 UTC by Serge Belyshev
Modified: 2006-02-28 09:13 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail: 3.4.0 4.0.0
Last reconfirmed: 2006-01-06 15:24:15


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Belyshev 2004-04-13 20:08:20 UTC
GCC ICEs when it reads counters file produced by gcc of different version:

$ gcc-3.5 hello.c -fprofile-arcs
$ ./a.out
hello, world
$ gcc hello.c
hello.c:0: warning: `hello.gcda' is version `
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Fix for this is trivial, I will send it to gcc-patches.
Comment 1 Serge Belyshev 2004-04-13 20:11:22 UTC
patch here: http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00800.html
Comment 2 Andrew Pinski 2004-04-13 20:15:36 UTC
Confirmed.
Comment 3 CVS Commits 2004-04-29 06:29:09 UTC
Subject: Bug 14944

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	wilson@gcc.gnu.org	2004-04-29 06:29:00

Modified files:
	gcc            : ChangeLog coverage.c pretty-print.c 

Log message:
	Patch from Serge Belyshev.
	PR 14944
	* coverage.c (read_counts_file): Fix usage of warning () call.
	* pretty-print.c (pp_base_format_text): Fix typo in the comment.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3508&r2=2.3509
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/coverage.c.diff?cvsroot=gcc&r1=1.33&r2=1.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/pretty-print.c.diff?cvsroot=gcc&r1=2.10&r2=2.11

Comment 4 Andrew Pinski 2004-04-29 11:48:55 UTC
Fixed for 3.5.0.
Comment 5 Andrew Pinski 2004-08-20 21:20:02 UTC
*** Bug 17124 has been marked as a duplicate of this bug. ***
Comment 6 H.J. Lu 2004-08-20 21:34:08 UTC
Why not backport the patch to gcc 3.4?
Comment 7 Mark Mitchell 2004-08-29 18:06:20 UTC
Postponed all ice-on-invalid bugs to GCC 3.4.3.
Comment 8 Mark Mitchell 2004-11-01 00:46:34 UTC
Postponed until GCC 3.4.4.
Comment 9 Gabriel Dos Reis 2006-02-28 09:13:11 UTC
Fixed in 3.4.6 too.