https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120169
Bug ID: 120169
Summary: [m68k] internal compiler error: in
maybe_record_trace_start, at dwarf2cfi.cc:2591 with
LRA enabled
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: glaubitz at physik dot fu-berlin.de
Target Milestone: ---
Bootstrapping GCC with LRA enabled on m68k fails with the following internal
compiler error when trying to build the M2 backend:
(unstable-m68k-sbuild)glaubitz@esk:~/gcc/host-m68k-unknown-linux-gnu/gcc$
/home/glaubitz/gcc/host-m68k-unknown-linux-gnu/prev-gcc/xg++
-B/home/glaubitz/gcc/host-m68k-unknown-linux-gnu/prev-gcc/
-B/usr/local/m68k-unknown-linux-gnu/bin/ -nostdinc++
-B/home/glaubitz/gcc/prev-m68k-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/glaubitz/gcc/prev-m68k-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/glaubitz/gcc/prev-m68k-unknown-linux-gnu/libstdc++-v3/include/m68k-unknown-linux-gnu
-I/home/glaubitz/gcc/prev-m68k-unknown-linux-gnu/libstdc++-v3/include
-I/home/glaubitz/gcc/libstdc++-v3/libsupc++
-L/home/glaubitz/gcc/prev-m68k-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/glaubitz/gcc/prev-m68k-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-MT m2/mc-boot/Gdecl.o -MMD -MP -MF m2/mc-boot/.deps/decl.TPo -g -O2
-fno-checking -gtoggle -fPIC -DMC_M2 -g -c -I. -I../.././gcc/m2/mc-boot-ch
-I../.././gcc/m2/mc-boot -I../.././gcc/../include -I../.././gcc -I.
-Im2/mc-boot -I../.././gcc -I../.././gcc/m2/mc-boot -I../.././gcc/../include
-I../.././gcc/../libcpp/include -I../.././gcc/../libcody
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd
-I../libdecnumber -I../.././gcc/../libbacktrace
../.././gcc/m2/mc-boot/Gdecl.cc -o m2/mc-boot/Gdecl.o
during RTL pass: dwarf2
../.././gcc/m2/mc-boot/Gdecl.cc: In function 'void
decl_buildVarientSelector(decl_node, decl_node, nameKey_Name, decl_node)':
../.././gcc/m2/mc-boot/Gdecl.cc:25229:1: internal compiler error: in
maybe_record_trace_start, at dwarf2cfi.cc:2591
25229 | }
| ^
0x82bb17d7 internal_error(char const*, ...)
../.././gcc/diagnostic-global-context.cc:517
0x82b7d22f fancy_abort(char const*, int, char const*)
../.././gcc/diagnostic.cc:1815
0x812b8881 maybe_record_trace_start
../.././gcc/dwarf2cfi.cc:2591
0x812b8c57 create_trace_edges
../.././gcc/dwarf2cfi.cc:2694
0x812b9591 scan_trace
../.././gcc/dwarf2cfi.cc:2918
0x812b96ff create_cfi_notes
../.././gcc/dwarf2cfi.cc:2945
0x812ba609 execute_dwarf2_frame
../.././gcc/dwarf2cfi.cc:3316
0x812bb71d execute
../.././gcc/dwarf2cfi.cc:3798
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.
(unstable-m68k-sbuild)glaubitz@esk:~/gcc/host-m68k-unknown-linux-gnu/gcc$
Attaching the preprocessed source in the next comment.