http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57457
Bug ID: 57457 Summary: cilk tests ICE in c-array-notation.c (is_cilkplus_reduce_builtin) on mips*-*-* Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sje at gcc dot gnu.org Created attachment 30217 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30217&action=edit Test case to reproduce error A number of cilk tests fail on mips*-*-* due to an ICE. The ICE happens when processing the bsearch function from the system include files and is because we call is_cilkplus_reduce_builtin with a NULL tree. I am not sure if is_cilkplus_reduce_builtin should be checking for NULL or if the fact that it is called with a NULL tree is the problem. Failure: mips-mti-linux-gnu-gcc -c -O1 -fcilkplus y.c y.c: In function 'bsearch': y.c:19:7: internal compiler error: Segmentation fault __comparison = (*__compar) (__key, __p); ^ 0x904fc5 crash_signal /local/home/sellcey/gcc/cilk/src/gcc/gcc/toplev.c:333 0x5176d4 is_cilkplus_reduce_builtin(tree_node*) /local/home/sellcey/gcc/cilk/src/gcc/gcc/c/c-array-notation.c:143 0x4f6ca6 convert_arguments /local/home/sellcey/gcc/cilk/src/gcc/gcc/c/c-typeck.c:2969 0x4f7e8c build_function_call_vec(unsigned int, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc, vl_embed>*) /local/home/sellcey/gcc/cilk/src/gcc/gcc/c/c-typeck.c:2786 0x56db44 c_common_parse_file() /local/home/sellcey/gcc/cilk/src/gcc/gcc/c-family/c-opts.c:1046 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.