Bug 109026 - m32c-elf: ICE while building Modula-2 components
Summary: m32c-elf: ICE while building Modula-2 components
Status: RESOLVED DUPLICATE of bug 83670
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 13.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-05 07:46 UTC by Jan-Benedict Glaw
Modified: 2023-03-05 08:03 UTC (History)
0 users

See Also:
Host:
Target: m32c-elf
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Benedict Glaw 2023-03-05 07:46:49 UTC
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).
Comment 1 Jan-Benedict Glaw 2023-03-05 07:49:47 UTC
Don't know how much effort to put into this. m32c has some very old PRs which look rather trivial, with no maintainer listed, so it's maybe ... dead already?
Comment 2 Andrew Pinski 2023-03-05 08:03:54 UTC
Dup of bug 83670.

*** This bug has been marked as a duplicate of bug 83670 ***