https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97205
--- Comment #20 from SRINATH PARVATHANENI <sripar01 at gcc dot gnu.org> --- (In reply to rguent...@suse.de from comment #17) > On Mon, 23 Nov 2020, bernd.edlinger at hotmail dot de wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97205 > > > > --- Comment #16 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- > > (In reply to SRINATH PARVATHANENI from comment #15) > > > (In reply to Bernd Edlinger from comment #14) > > > > fixed on trunk. > > > > > > Thanks Bernd for fixing this on trunk, would you mind backporting this to > > > GCC-10 as well? > > > > > > Thanks you. > > > > > > Regards, > > > Srinath. > > > > Since it is a gcc_checking_assert that triggers the ICE, > > I assumed that does not affect a release build, > > is that correct? > > That is correct. I did not understand what you meant above, please correct me if I'm wrong. My observation: $ arm-none-eabi-gcc bugx.c -O0 -c during RTL pass: expand bugx.c: In function 'fn1': bugx.c:4:5: internal compiler error: in gen_movsi, at config/arm/arm.md:6364 4 | x b = ({ | ^ 0x14ede14 gen_movsi(rtx_def*, rtx_def*) /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/config/arm/arm.md:6364 0x92153f insn_gen_fn::operator()(rtx_def*, rtx_def*) const /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/recog.h:317 0x92153f emit_move_insn_1(rtx_def*, rtx_def*) /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/expr.c:3759 0x921cf4 emit_move_insn(rtx_def*, rtx_def*) /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/expr.c:3855 0x92a6f0 store_expr(tree_node*, rtx_def*, int, bool, bool) /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/expr.c:5931 0x92c973 expand_assignment(tree_node*, tree_node*, bool) /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/expr.c:5516 0x7d965c expand_gimple_stmt_1 /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/cfgexpand.c:3755 0x7d965c expand_gimple_stmt /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/cfgexpand.c:3851 0x7dbf65 expand_gimple_basic_block /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/cfgexpand.c:5895 0x7dce7b execute /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/gcc/cfgexpand.c:6550 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. $ arm-none-eabi-gcc -v Using built-in specs. COLLECT_GCC=/arm/pdtl/builds/latest-fsf-10/installed/cen7x86_64/arm-none-eabi/bin/arm-none-eabi-gcc COLLECT_LTO_WRAPPER=/arm/pdtl/builds/fsf-10.233/installed/cen7x86_64/arm-none-eabi/bin/../libexec/gcc/arm-none-eabi/10.3.1/lto-wrapper Target: arm-none-eabi Configured with: /data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/src/gcc/configure --target=arm-none-eabi --prefix=/data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/build-arm-none-eabi/install// --with-gmp=/data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/build-arm-none-eabi/host-tools --with-mpfr=/data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/build-arm-none-eabi/host-tools --with-mpc=/data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/build-arm-none-eabi/host-tools --with-isl=/data/dgboter/bbs/build22--cen7x86_64/buildbot/cen7x86_64--arm-none-eabi--all-profiles/build/build-arm-none-eabi/host-tools --disable-shared --disable-nls --disable-threads --disable-tls --enable-checking=yes --enable-languages=c,c++,fortran --with-newlib --with-multilib-list=aprofile,rmprofile --with-pkgversion=fsf-10.233 Thread model: single Supported LTO compression algorithms: zlib gcc version 10.3.1 20210507 (fsf-10.233) I still see the ICE with GCC-10, should I be backporting this patch, if yes, please approve the following patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-April/569318.html