https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81666
Bug ID: 81666 Summary: GLIBC build failed with arm/aarch64 linux cross toolchain Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: amker at gcc dot gnu.org Target Milestone: --- Created attachment 41889 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41889&action=edit compressed preprocessed c code Hi, With r250771, GCC failed to build glibc for arm/aarch64 linux cross toolchain: during RTL pass: expand loadlocale.c: In function ‘_nl_load_locale’: loadlocale.c:199:7: internal compiler error: in emit_move_insn, at expr.c:3704 __mempcpy (__mempcpy (__mempcpy (newp, file->filename, filenamelen), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x80902b emit_move_insn(rtx_def*, rtx_def*) /test/source/gcc/gcc/expr.c:3703 0x6d2271 expand_builtin_memory_copy_args /test/source/gcc/gcc/builtins.c:3514 0x6d48d7 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /test/source/gcc/gcc/builtins.c:6847 0x80454c expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /test/source/gcc/gcc/expr.c:10848 0x6f8a9c expand_expr /test/source/gcc/gcc/expr.h:276 0x6f8a9c expand_call_stmt /test/source/gcc/gcc/cfgexpand.c:2664 0x6f8a9c expand_gimple_stmt_1 /test/source/gcc/gcc/cfgexpand.c:3583 0x6f8a9c expand_gimple_stmt /test/source/gcc/gcc/cfgexpand.c:3749 0x6f9c1a expand_gimple_basic_block /test/source/gcc/gcc/cfgexpand.c:5751 0x6ff986 execute /test/source/gcc/gcc/cfgexpand.c:6358 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Preprocessed file for aarch64-none-linux-gnu toolchain attached. Reproduce with below command line: $ aarch64-none-linux-gnu-gcc -std=gnu11 -fgnu89-inline -O2 -Wall -Wundef -Wwrite-strings -fmerge-all-constants -fno-stack-protector -frounding-math -g -Wstrict-prototypes -Wold-style-definition -ftls-model=initial-exec -xc /tmp/loadlocale.E -o /tmp/loadlocale.S -S