https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64546
Bug ID: 64546 Summary: m32c ICE at calls.c:3638 compiling newlib 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 xgcc (GCC) 5.0.0 20150107 (experimental) This fails at -O[012S]. The flag -mcpu=m32cm appears to be the trigger. /home2/joel/build/b-m32c-gcc/./gcc/xgcc -B/home2/joel/build/b-m32c-gcc/./gcc/ -c -g -O0 -mcpu=m32cm m32c-fopencookie.c /users/joel/test-gcc/gcc/newlib/libc/stdio/fopencookie.c: In function 'fopencookie': /users/joel/test-gcc/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); ^ 0x558b39 expand_call(tree_node*, rtx_def*, int) /users/joel/test-gcc/gcc/gcc/calls.c:3638 0x64afa0 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /users/joel/test-gcc/gcc/gcc/expr.c:10474 0x656fbc store_expr_with_bounds(tree_node*, rtx_def*, int, bool, tree_node*) /users/joel/test-gcc/gcc/gcc/expr.c:5368 0x65e5ce expand_assignment(tree_node*, tree_node*, bool) /users/joel/test-gcc/gcc/gcc/expr.c:5137 0x565886 expand_call_stmt /users/joel/test-gcc/gcc/gcc/cfgexpand.c:2345 0x565886 expand_gimple_stmt_1 /users/joel/test-gcc/gcc/gcc/cfgexpand.c:3293 0x565886 expand_gimple_stmt /users/joel/test-gcc/gcc/gcc/cfgexpand.c:3447 0x56b6e4 expand_gimple_basic_block /users/joel/test-gcc/gcc/gcc/cfgexpand.c:5280 0x56d0ae execute /users/joel/test-gcc/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.