https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116244
Bug ID: 116244
Summary: [15 Regression] reload ICE building libstdc++ for
coldfire
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: jsm28 at gcc dot gnu.org
CC: law at gcc dot gnu.org
Target Milestone: ---
Target: m68k-*-*
Created attachment 58843
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58843&action=edit
preprocessed source (gzipped)
The following ICE building libstdc++ for coldfire (m68k-linux-gnu
--with-arch=cf --disable-multilib) was introduced by:
commit 88d16194d0c8a6bdc2896c8944bfbf3e6038c9d2
Author: Jeff Law <[email protected]>
Date: Mon Jul 22 08:45:10 2024 -0600
[NFC][PR rtl-optimization/115877] Avoid setting irrelevant bit groups as
live in ext-dce
and is still present as of 86512292270860bbe1dd33cef1ebe041d597462c. Thus, in
particular, it is *not* the same as the ICE building glibc for classic m68k
(bug 116199) that was introduced by the same commit (though when doing the
initial triage of the failures from build-many-glibcs.py I assumed them to be
the same issue), as that's been fixed while this ICE remains.
Build the attached preprocessed source with -std=gnu++20 -O2.
/notnfs/josmyers/glibc-manual/build/compilers/m68k-linux-gnu-coldfire/gcc/./gcc/xgcc
-B/notnfs/josmyers/glibc-manual/build/compilers/m68k-linux-gnu-coldfire/gcc/./gcc
-std=gnu++20 -O2 -fPIC -S -o /dev/null tzdb.ii
during RTL pass: reload
/notnfs/josmyers/glibc-manual/src/gcc/libstdc++-v3/src/c++20/tzdb.cc: In member
function 'std::chrono::year_month_day
std::chrono::{anonymous}::on_day::pin(std::chrono::year) const':
/notnfs/josmyers/glibc-manual/src/gcc/libstdc++-v3/src/c++20/tzdb.cc:340:7:
internal compiler error: Segmentation fault
340 | }
| ^
0x1e4aace internal_error(char const*, ...)
/notnfs/josmyers/glibc-manual/src/gcc/gcc/diagnostic-global-context.cc:491
0x120254f crash_signal
/notnfs/josmyers/glibc-manual/src/gcc/gcc/toplev.cc:321
0xd530bc df_install_refs
/notnfs/josmyers/glibc-manual/src/gcc/gcc/df-scan.cc:2376
0xd530bc df_install_refs
/notnfs/josmyers/glibc-manual/src/gcc/gcc/df-scan.cc:2335
0xd53306 df_refs_add_to_chains
/notnfs/josmyers/glibc-manual/src/gcc/gcc/df-scan.cc:2430
0xd5a116 df_bb_refs_record(int, bool)
/notnfs/josmyers/glibc-manual/src/gcc/gcc/df-scan.cc:3356
0xd5a25c df_scan_blocks()
/notnfs/josmyers/glibc-manual/src/gcc/gcc/df-scan.cc:587
0xfdc7f4 do_reload
/notnfs/josmyers/glibc-manual/src/gcc/gcc/ira.cc:6040
0xfdc7f4 execute
/notnfs/josmyers/glibc-manual/src/gcc/gcc/ira.cc:6164
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.
I don't know if there's any connection to the different ICE building the same
file for classic m68k with LRA enabled (bug 116236).