This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-3.2 crash
- From: Martin MOKREJŠ <mmokrejs at natur dot cuni dot cz>
- To: gcc-gnats at gcc dot gnu dot org
- Cc: bim at atrey dot karlin dot mff dot cuni dot cz
- Date: Mon, 16 Sep 2002 22:31:52 +0200 (CEST)
- Subject: gcc-3.2 crash
- Resent-subject: gcc-3.2 crash
Hi,
I got crash from gcc-3.2 while compiling cvs binary. The binary I got
from www.sunfreeware.com (see below).
$ gcc -save-temps -Wall -DHAVE_CONFIG_H -I. -I.. -I../src -I../lib -I/software/@sys/usr/include -I/software/@sys/usr/local/include -O3 -felide-constructors -fprofile-arcs -fbranch-probabilities -c `test -f diff3.c || echo './'`diff3.c
diff3.c:0: warning: file diff3.da not found, execution counts assumed to be zero
diff3.c: In function `output_diff3':
diff3.c:1441: warning: `oddoneout' might be used uninitialized in this function
diff3.c:1446: warning: `dontprint' might be used uninitialized in this function
diff3.c: In function `undotlines':
diff3.c:1557: warning: suggest explicit braces to avoid ambiguous `else'
diff3.c: In function `output_diff3_merge':
diff3.c:1752: warning: suggest explicit braces to avoid ambiguous `else'
diff3.c:1806: warning: suggest explicit braces to avoid ambiguous `else'
diff3.c: In function `diff3_fatal':
diff3.c:1862: internal error: Segmentation Fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$ uname -a
SunOS pf-i400 5.6 Generic_105181-31 sun4u sparc
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.2
$ pkginfo -l SMCgcc
PKGINST: SMCgcc
NAME: gcc
CATEGORY: application
ARCH: sparc
VERSION: 3.2
BASEDIR: /usr/local
VENDOR: Free Software Foundation
PSTAMP: Steve Christensen
INSTDATE: Sep 16 2002 21:37
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 1745 installed pathnames
4 linked files
131 directories
35 executables
291515 blocks used (approx)
$ $ gcc -save-temps -Wall -DHAVE_CONFIG_H -I. -I.. -I../src -I../lib -I/software/@sys/usr/include -I/software/@sys/usr/local/include -O3 -felide-constructors -c `test -f diff3.c || echo './'`diff3.cdiff3.c: In function `output_diff3':
diff3.c:1441: warning: `oddoneout' might be used uninitialized in this function
diff3.c:1446: warning: `dontprint' might be used uninitialized in this function
diff3.c: In function `undotlines':
diff3.c:1557: warning: suggest explicit braces to avoid ambiguous `else'
diff3.c: In function `output_diff3_merge':
diff3.c:1752: warning: suggest explicit braces to avoid ambiguous `else'
diff3.c:1806: warning: suggest explicit braces to avoid ambiguous `else'
$
I suspect there's a problem in the new code. When either of -fbranch-probabilities
or -fprofile-arcs is used, I get a crash. As the diff3.i was exactly same
in the crash nad successfull trial (without those 2 options), I'm not
including this file.
Hope this helps
--
Martin Mokrejs <mmokrejs@natur.cuni.cz>, <m.mokrejs@gsf.de>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585