This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/16573] New: compiler crash while building groff with -fmudflap
- From: "fche at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2004 18:59:34 -0000
- Subject: [Bug tree-optimization/16573] New: compiler crash while building groff with -fmudflap
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Building groff/src/libs/libgroff/font.cpp recently started to die when
compiled with -fmudflap with a mainline CVS compiler. I attach various
versions of test cases, and show the transcript here.
int text_file::next()
{
if (buf == 0) {
buf = 0;
}
for (;;) {
int c;
if
#if COMPILER_SEGV
(0)
#else /* DOMINANCE_ABORT */
(invalid_input_char(c))
#endif
error("invalid input character code `%1'", int(c));
}
return 0;
}
with COMPILER_SEGV defined, one gets
/notnfs/fche/BUILD-gcc-mudflap/INST/libexec/gcc/i686-pc-linux-gnu/3.5.0/cc1plus
-fpreprocessed font2.ii -quiet -dumpbase font2.cpp -mtune=pentiumpro -auxbase
font2 -g -O2 -version -fmudflap -fno-builtin -fno-merge-constants -o font2.s
GNU C++ version 3.5.0 20040715 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.5.0 20040713 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
font2.cpp: In member function `int text_file::next()':
font2.cpp:52: internal compiler error: Segmentation fault
without COMPILER_SEGV, one gets
/notnfs/fche/BUILD-gcc-mudflap/INST/libexec/gcc/i686-pc-linux-gnu/3.5.0/cc1plus
-fpreprocessed font2.ii -quiet -dumpbase font2.cpp -mtune=pentiumpro -auxbase
font2 -g -O2 -version -fmudflap -fno-builtin -fno-merge-constants -o font2.s
GNU C++ version 3.5.0 20040715 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.5.0 20040713 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
font2.cpp: In member function `int text_file::next()':
font2.cpp:52: error: dominator of 10 should be 11, not 0
font2.cpp:52: internal compiler error: in verify_dominators, at dominance.c:828
Please submit a full bug report,
--
Summary: compiler crash while building groff with -fmudflap
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fche at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16573