https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67989
--- Comment #6 from ktkachov at gcc dot gnu.org --- Created attachment 36561 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36561&action=edit Reduced testcase Attaching reduced testcase, here's the full ICE backtrace. Can be reproduced with -O2 -std=c++11 -march=armv4t -marm besttry.cpp: In member function ‘void lldb::SBAddress::SetAddress(lldb::SBSection, lldb::addr_t)’: besttry.cpp:27:23: internal compiler error: in emit_move_insn, at expr.c:3553 __atomic_load (&_M_i, &tmp, __m); ^ 0x8135af emit_move_insn(rtx_def*, rtx_def*) $SRC/gcc/expr.c:3552 0x9763c1 expand_atomic_compare_and_swap(rtx_def**, rtx_def**, rtx_def*, rtx_def*, rtx_def*, bool, memmodel, memmodel) $SRC/gcc/optabs.c:5907 0x976a22 expand_atomic_load(rtx_def*, rtx_def*, memmodel) $SRC/gcc/optabs.c:6019 0x71e9cf expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) $SRC/gcc/builtins.c:6738 0x810a85 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) $SRC/gcc/expr.c:10474 0x73bded expand_expr $SRC/gcc/expr.h:255 0x73bded expand_call_stmt $SRC/gcc/cfgexpand.c:2647 0x73bded expand_gimple_stmt_1 $SRC/gcc/cfgexpand.c:3534 0x73bded expand_gimple_stmt $SRC/gcc/cfgexpand.c:3697 0x73cd89 expand_gimple_tailcall $SRC/gcc/cfgexpand.c:3744 0x73cd89 expand_gimple_basic_block $SRC/gcc/cfgexpand.c:5677 0x741dde execute $SRC/gcc/cfgexpand.c:6286 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.