https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63817
Bug ID: 63817 Summary: ICE in verify_gimple_in_cfg tree-cfg.c:5039 (arm) Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: joel at gcc dot gnu.org Created attachment 33934 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33934&action=edit Preprocessed newlib ecvtbuf.c which produces the ICE gcc, binutils-gdb, newlib head. gcc git hash 662274eebc1318f5a70fdb362da74f7913fbf1ba Fails on both arm-eabi and arm-rtems at -O1 and -O2. Compiles at -O0 w/-mthumb and at -O2 w/o -mthumb Configure (from top config.log) is based on RTEMS standard build configuration ../gcc/configure --prefix=/users/joel/test-gcc/install-head --bindir=/users/joel/test-gcc/install-head/bin --exec_prefix=/users/joel/test-gcc/install-head --includedir=/users/joel/test-gcc/install-head/include --libdir=/users/joel/test-gcc/install-head/lib --libexecdir=/users/joel/test-gcc/install-head/libexec --mandir=/users/joel/test-gcc/install-head/share/man --infodir=/users/joel/test-gcc/install-head/share/info --datadir=/users/joel/test-gcc/install-head/share --target=arm-eabi --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --enable-newlib-iconv --enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 --disable-lto --enable-newlib-io-c99-formats --enable-threads --disable-plugin target_alias=arm-eabi --enable-languages=c,c++ --no-create --no-recursion Shortened command and failure with attached preprocessed evctbuf.c from newlib: /users/joel/test-gcc/b-arm-eabi-gcc/./gcc/xgcc -B/users/joel/test-gcc/b-arm-eabi-gcc/./gcc/ -g -O2 -mthumb -c ecvtbuf.c In file included from ../../../../../../gcc/newlib/libc/stdlib/ecvtbuf.c:71:0: /users/joel/test-gcc/gcc/newlib/libc/include/stdlib.h: In function 'fcvtbuf': /users/joel/test-gcc/gcc/newlib/libc/include/stdlib.h:175:8: error: non-trivial conversion at assignment char * _EXFUN(fcvtbuf,(double, int, int*, int*, char *)); ^ sizetype int _64 = _37; /users/joel/test-gcc/gcc/newlib/libc/include/stdlib.h:175:8: internal compiler error: verify_gimple failed 0x9602d1 verify_gimple_in_cfg(function*, bool) ../../gcc/gcc/tree-cfg.c:5039 0x86fd06 execute_function_todo ../../gcc/gcc/passes.c:1868 0x870733 execute_todo ../../gcc/gcc/passes.c:1925 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.