From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19885 invoked by alias); 15 Jul 2004 18:59:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19871 invoked by uid 48); 15 Jul 2004 18:59:34 -0000 Date: Thu, 15 Jul 2004 18:59:00 -0000 From: "fche at redhat dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040715185932.16573.fche@redhat.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/16573] New: compiler crash while building groff with -fmudflap X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg01909.txt.bz2 List-Id: 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