https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78105
Bug ID: 78105 Summary: ICE during LTO bootstrap on AARCH64 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: tulipawn at gmail dot com Target Milestone: --- Using a recent gcc7 to bootstrap gcc configured with --with-build-config=bootstrap-lto leads to an ICE: make[4]: Leaving directory 'build-lto/aarch64-linux-gnu/libgcc' build-lto/./gcc/xgcc -B/../build-lto/./gcc/ -B/usr/gcc7/aarch64-linux-gnu/bin/ -B/usr/gcc7/aarch64-linux-gnu/lib/ -isystem /usr/gcc7/aarch64-linux-gnu/include -isystem /usr/gcc7/aarch64-linux-gnu/sys-include -g -O2 -O3 -mtune=cortex-a53 -fomit-frame-pointer -fipa-pta -march=armv8-a+crc -ftree-vectorize -O2 -g -O2 -O3 -mtune=cortex-a53 -fomit-frame-pointer -fipa-pta -march=armv8-a+crc -ftree-vectorize -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS In file included from ../../../libgcc/libgcc2.h:513:0, from ../../../libgcc/libgcc2.c:56: ../../../libgcc/libgcc2.c: In function ‘__multi3’: ../../../libgcc/../include/longlong.h:1637:10: internal compiler error: tree check: expected class ‘expression’, have ‘binary’ (bit_and_expr) in tree_operand_check, at tree.h:3539 __ul = __ll_lowpart (u); \ ^ ../../../libgcc/../include/longlong.h:1660:5: note: in expansion of macro ‘umul_ppmm’ umul_ppmm (__w.s.high, __w.s.low, u, v); \ ^~~~~~~~~ ../../../libgcc/libgcc2.c:551:22: note: in expansion of macro ‘__umulsidi3’ DWunion w = {.ll = __umulsidi3 (uu.s.low, vv.s.low)}; ^~~~~~~~~~~ ../../../libgcc/../include/longlong.h:1637:10: internal compiler error: Segmentation fault __ul = __ll_lowpart (u); \ ^ ../../../libgcc/../include/longlong.h:1660:5: note: in expansion of macro ‘umul_ppmm’ umul_ppmm (__w.s.high, __w.s.low, u, v); \ ^~~~~~~~~ ../../../libgcc/libgcc2.c:551:22: note: in expansion of macro ‘__umulsidi3’ DWunion w = {.ll = __umulsidi3 (uu.s.low, vv.s.low)}; ^~~~~~~~~~~ xgcc: internal compiler error: Segmentation fault (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Makefile:488: recipe for target '_muldi3.o' failed make[3]: *** [_muldi3.o] Error 4 make[3]: Leaving directory '/home/odroid/gcc-svn-master/build-lto/aarch64-linux-gnu/libgcc' Makefile:17246: recipe for target 'all-stage2-target-libgcc' failed