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

            Bug ID: 109026
           Summary: m32c-elf: ICE while building Modula-2 components
           Product: gcc
           Version: hsa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jbg...@lug-owl.de
  Target Milestone: ---

This sneaked in with the Modula-2 merge:

[all 2023-03-05 01:12:42] test -d
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/gcc/m2/gm2-libs ||
/bin/bash ../../gcc/gcc/../mkinstalldirs
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/gcc/m2/gm2-libs
[all 2023-03-05 01:12:42] echo "GM2_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ "
[all 2023-03-05 01:12:42] GM2_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ 
[all 2023-03-05 01:12:42] echo "GCC_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ "
[all 2023-03-05 01:12:42] GCC_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ 
[all 2023-03-05 01:12:42] /bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim
\
[all 2023-03-05 01:12:42]              ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
[all 2023-03-05 01:12:42]              ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
[all 2023-03-05 01:12:42]              -I../../gcc/gcc/m2/gm2-libs \
[all 2023-03-05 01:12:42]             
"/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ "
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
[all 2023-03-05 01:12:43] during RTL pass: pro_and_epilogue
[all 2023-03-05 01:12:43] <built-in>: In function '_M2_SYSTEM_init':
[all 2023-03-05 01:12:43] <built-in>: internal compiler error: in
leaf_function_p, at final.cc:4054
[all 2023-03-05 01:12:43] 0x605999 leaf_function_p()
[all 2023-03-05 01:12:43]       ../../gcc/gcc/final.cc:4054
[all 2023-03-05 01:12:43] 0x109cd8c m32c_leaf_function_p
[all 2023-03-05 01:12:43]       ../../gcc/gcc/config/m32c/m32c.cc:4018
[all 2023-03-05 01:12:43] 0x109cd8c m32c_emit_prologue()
[all 2023-03-05 01:12:43]       ../../gcc/gcc/config/m32c/m32c.cc:4072
[all 2023-03-05 01:12:43] 0x14ebbfa gen_prologue()
[all 2023-03-05 01:12:43]       ../../gcc/gcc/config/m32c/prologue.md:26
[all 2023-03-05 01:12:43] 0x1099955 target_gen_prologue
[all 2023-03-05 01:12:43]       ../../gcc/gcc/config/m32c/blkmov.md:359
[all 2023-03-05 01:12:43] 0xa3c9b7 make_prologue_seq
[all 2023-03-05 01:12:43]       ../../gcc/gcc/function.cc:5841
[all 2023-03-05 01:12:43] 0xa3cb63 thread_prologue_and_epilogue_insns()
[all 2023-03-05 01:12:43]       ../../gcc/gcc/function.cc:6073
[all 2023-03-05 01:12:43] 0xa3d292 rest_of_handle_thread_prologue_and_epilogue
[all 2023-03-05 01:12:43]       ../../gcc/gcc/function.cc:6572
[all 2023-03-05 01:12:43] 0xa3d292 execute
[all 2023-03-05 01:12:43]       ../../gcc/gcc/function.cc:6655
[all 2023-03-05 01:12:43] Please submit a full bug report, with preprocessed
source (by using -freport-bug).
[all 2023-03-05 01:12:43] Please include the complete backtrace with any bug
report.
[all 2023-03-05 01:12:43] See <https://gcc.gnu.org/bugs/> for instructions.

Should be reproducible with:
.../gcc/configure --enable-werror-always --enable-languages=all --disable-gcov
--disable-shared --disable-threads --target=m32c-elf --without-headers
make V=1 all-gcc

My most recent build log is at
http://toolchain.lug-owl.de/laminar/jobs/gcc-m32c-elf, the above is taken from
http://toolchain.lug-owl.de/laminar/jobs/gcc-m32c-elf/34 (which is based on
g:6010189923908501ca5b02bd1f4aee05d2283118).

Reply via email to