[Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 11 15:38:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12578
Summary: [tree-ssa] Segfault when optimizing switch statement
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
falk@juist:/tmp% cat min5.c
void trivial_regexp_p(int *s, int len)
{
while (--len) {
switch (*s++) {
case '\\':
switch (*s++) {
case '|':
;
}
}
}
}
falk@juist:/tmp% gcc -c -O min5.c -v
Reading specs from
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/specs
Configured with: ../configure --disable-nls --enable-languages=c++
Thread model: posix
gcc version 3.5-tree-ssa 20031009 (merged 20031005)
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/cc1 -quiet -v -iprefix /usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/ min5.c -quiet -dumpbase min5.c -mcpu=ev67 -auxbase min5 -O -version -o /tmp/cc4RLbEi.s
ignoring nonexistent directory
"/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
ignoring nonexistent directory "NONE/include"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include
/usr/local/include
/usr/include
End of search list.
GNU C version 3.5-tree-ssa 20031009 (merged 20031005) (alphaev68-unknown-linux-gnu)
compiled by GNU C version 3.5-tree-ssa 20031009 (merged 20031005).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
min5.c: In function `trivial_regexp_p':
min5.c:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
More information about the Gcc-bugs
mailing list