https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64375
Bug ID: 64375 Summary: m32c ICE building newlib in calls.cL3638 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: joel at gcc dot gnu.org Created attachment 34312 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34312&action=edit Preprocessed fopencookie.c from newlib xgcc (GCC) 5.0.0 20141221 (experimental) This appears to be completely independent of optimization. It fails at O[012s] if -mcpum32cm is included. /users/joel/test-gcc/b-m32c-rtems4.11-gcc/./gcc/xgcc -B/users/joel/test-gcc/b-m32c-rtems4.11-gcc/./gcc/ -c -Os -mcpu=m32cm f.c /users/joel/test-gcc/b-m32c-rtems4.11-gcc/./gcc/xgcc -B/users/joel/test-gcc/b-m32c-rtems4.11-gcc/./gcc/ -nostdinc -B/users/joel/test-gcc/b-m32c-rtems4.11-gcc/m32c-rtems4.11/m32cm/newlib/ -isystem /users/joel/test-gcc/b-m32c-rtems4.11-gcc/m32c-rtems4.11/m32cm/newlib/targ-include -isystem /users/joel/test-gcc/gcc/newlib/libc/include -B/users/joel/test-gcc/install-head/m32c-rtems4.11/bin/ -B/users/joel/test-gcc/install-head/m32c-rtems4.11/lib/ -isystem /users/joel/test-gcc/install-head/m32c-rtems4.11/include -isystem /users/joel/test-gcc/install-head/m32c-rtems4.11/sys-include -mcpu=m32cm -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.2.0\" -DPACKAGE_STRING=\"newlib\ 2.2.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../gcc/newlib/libc/stdio -Os -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY -D_COMPILING_NEWLIB -DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL -DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -D_NO_POSIX_SPAWN -fno-builtin -g -O2 -c -o lib_a-fopencookie.o `test -f 'fopencookie.c' || echo '../../../../../../gcc/newlib/libc/stdio/'`fopencookie.c ../../../../../../gcc/newlib/libc/stdio/fopencookie.c: In function 'fopencookie': ../../../../../../gcc/newlib/libc/stdio/fopencookie.c:260:10: internal compiler error: in expand_call, at calls.c:3638 return _fopencookie_r (_REENT, cookie, mode, functions); ^ 0x558859 expand_call(tree_node*, rtx_def*, int) ../../gcc/gcc/calls.c:3638 0x64ac10 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:10474 0x656c2c store_expr_with_bounds(tree_node*, rtx_def*, int, bool, tree_node*) ../../gcc/gcc/expr.c:5368 0x65e23e expand_assignment(tree_node*, tree_node*, bool) ../../gcc/gcc/expr.c:5137 0x5655a6 expand_call_stmt ../../gcc/gcc/cfgexpand.c:2345 0x5655a6 expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:3293 0x5655a6 expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:3447 0x56b651 expand_gimple_tailcall ../../gcc/gcc/cfgexpand.c:3494 0x56b651 expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:5257 0x56cdce execute ../../gcc/gcc/cfgexpand.c:5889 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. make: *** [lib_a-fopencookie.o] Error 1