https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118711

            Bug ID: 118711
           Summary: [15 Regression] ICE during during GIMPLE pass: evrp
                    building NumberIO.o on s390x-linux-gnu
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: modula2
          Assignee: gaius at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20250130 on s390x-linux-gnu, building libgm2 (NumberIO.o), last
successful build from 20250114.

ibtool: compile:  /build/reproducible-path/gcc-15-15-20250130/build/./gcc/gm2
-B/build/reproducible-path/gcc-15-15-20250130/build/./gcc/ -c -g -O2 -g -O2
-fm2-pathname=m2pim -I.
-I/build/reproducible-path/gcc-15-15-20250130/src/gcc/m2/gm2-libs
-fm2-pathname=m2iso
-I/build/reproducible-path/gcc-15-15-20250130/src/gcc/m2/gm2-libs-iso -fm2-g -g
-Wcase-enum -Wreturn-type -fcase -fm2-prefix=m2pim
../../../../src/libgm2/libm2pim/../../gcc/m2/gm2-libs/NumberIO.mod  -fPIC -DPIC
-o .libs/NumberIO.o
terminate called after throwing an instance of 'unsigned int'
during GIMPLE pass: evrp
In function 'm2pim_NumberIO_BinToStr':
cc1gm2: internal compiler error: Aborted
0x2d7bf75 internal_error(char const*, ...)
        ../../src/gcc/diagnostic-global-context.cc:517
0x1b490a1 crash_signal
        ../../src/gcc/toplev.cc:322
0x3ff8e2a4972 __pthread_kill_implementation
        ./nptl/pthread_kill.c:44
0x3ff8e24ad17 __GI_raise
        ../sysdeps/posix/raise.c:26
0x3ff8e22c2ef __GI_abort
        ./stdlib/abort.c:79
0x2e76587 __gnu_cxx::__verbose_terminate_handler()
        ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
0x2e75aed __cxxabiv1::__terminate(void (*)())
        ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:48
0x1293637 std::terminate()
        ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:58
0x2e75cdd __cxa_throw
        ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:98
0x13ab711 InvokeHandler
        m2/gm2-libs-boot/RTExceptions.c:481
0x13ab711 RTExceptions_Raise
        m2/gm2-libs-boot/RTExceptions.c:943
0x13ab9b5 invalidloc
        m2/gm2-libs-boot/RTExceptions.c:752
0x1f79f7a contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        ../../src/gcc/tree.h:3832
0x1f79f7a build_call_expr_loc_array(unsigned long, tree_node*, int,
tree_node**)
        ../../src/gcc/tree.cc:10928
0x1f7a299 build_call_expr(tree_node*, int, ...)
        ../../src/gcc/tree.cc:10978
0x1d54f85 build_cltz_expr
        ../../src/gcc/tree-ssa-loop-niter.cc:2274
0x1d63dd1 number_of_iterations_cltz_complement
        ../../src/gcc/tree-ssa-loop-niter.cc:2554
0x1d63dd1 number_of_iterations_bitcount
        ../../src/gcc/tree-ssa-loop-niter.cc:2640
0x1d63dd1 number_of_iterations_exit_assumptions(loop*, edge_def*,
tree_niter_desc*, gcond**, bool, basic_block_def**)
        ../../src/gcc/tree-ssa-loop-niter.cc:3180
0x1d65e43 number_of_iterations_exit(loop*, edge_def*, tree_niter_desc*, bool,
bool, basic_block_def**)
        ../../src/gcc/tree-ssa-loop-niter.cc:3269
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-15/README.Bugs> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.

complete build logs at
https://buildd.debian.org/status/fetch.php?pkg=gcc-15&arch=s390x&ver=15-20250130-2&stamp=1738290688&raw=1

and
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+build/30170719

Reply via email to