https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112778
Bug ID: 112778 Summary: [14 Regression] ICE in ppc64-linux-gnu crosscompiler in store_by_pieces, at expr.cc:1820 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fkastl at suse dot cz Target Milestone: --- Host: x86_64-linux Target: ppc64-linux-gnu Compiling the gcc.dg/strlenopt-5.c GCC testsuite testcase with ppc64-linux-gnu as target like this: ppc64-linux-gnu-gcc /home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gcc.dg/strlenopt-5.c -finline-stringops results in and ICE: during RTL pass: expand ../src/gcc/testsuite/gcc.dg/strlenopt-5.c: In function ‘main’: ../src/gcc/testsuite/gcc.dg/strlenopt-5.c:35:3: internal compiler error: in store_by_pieces, at expr.cc:1820 35 | memset (buf, 'v', 3); | ^~~~~~~~~~~~~~~~~~~~ 0x644072 store_by_pieces(rtx_def*, unsigned long, rtx_def* (*)(void*, void*, long, fixed_size_mode), void*, unsigned int, bool, memop_ret) /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/expr.cc:1820 0x7a1197 try_store_by_multiple_pieces(rtx_def*, rtx_def*, unsigned int, unsigned long, unsigned long, rtx_def*, char, unsigned int) /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/builtins.cc:4456 0x7a7f63 expand_builtin_memset_args /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/builtins.cc:4661 0x7aa174 expand_builtin_memset(tree_node*, rtx_def*, machine_mode) /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/builtins.cc:4279 0x7aa174 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/builtins.cc:7834 0x8cbd08 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/expr.cc:12304 0x7c8366 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/expr.h:313 0x7c8366 expand_call_stmt /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/cfgexpand.cc:2832 0x7c8366 expand_gimple_stmt_1 /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/cfgexpand.cc:3881 0x7c8366 expand_gimple_stmt /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/cfgexpand.cc:4045 0x7ccd07 expand_gimple_basic_block /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/cfgexpand.cc:6101 0x7ce9fe execute /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/gcc/cfgexpand.cc:6836 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. The same error (even the same stacktrace) also occurs with ppc64-linux-gnu-gfortran /home/worker/llvm/src/flang/test/Lower/HLFIR/function-return.f90 -finline-stringops ppc64-linux-gnu-gfortran /home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gfortran.dg/implied_do_io_4.f90 -Os -finline-stringops ppc64-linux-gnu-gfortran /home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gfortran.dg/gomp/defaultmap-5.f90 -finline-stringops ppc64-linux-gnu-gfortran /home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gfortran.dg/verify_2.f90 -finline-stringops Compiler configuration: Using built-in specs. COLLECT_GCC=/home/worker/cross/bin/ppc64-linux-gnu-gfortran COLLECT_LTO_WRAPPER=/home/worker/cross/libexec/gcc/ppc64-linux-gnu/14.0.0/lto-wrapper Target: ppc64-linux-gnu Configured with: /home/worker/buildworker/tiber-gcc-trunk-ppc64/build/configure --enable-languages=c,c++,fortran,rust,m2 --disable-bootstrap --disable-libsanitizer --disable-multilib --enable-checking=release --prefix=/home/worker/cross --target=ppc64-linux-gnu --with-as=/usr/bin/powerpc64-suse-linux-as Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231130 (experimental) 31d8cf17ca4537e35bc7507ff1d9dfce077c0c68 (GCC)