https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111704
Bug ID: 111704 Summary: ICE in extract_insn, at recog.cc:2791 on aarch64-linux-gnu during RTL pass: cprop_hardreg Product: gcc Version: 12.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- While [building GHDL 3.0.0]() on Debian, using gcc 12 as a base, we get an ICE: aarch64-linux-gnu-gcc-12 -c -I./ -I../../src -I../../src/vhdl -I../../src/synth -I../../src/grt -I../../src/psl -I../../src/vhdl/translate -I../../src/ghdldrv -I../../src/ortho -I../../src/ortho/llvm6 -I../../src/synth -I../../src/ghdldrv -gnat12 -gnaty3befhkmr -g -gnatwa -gnatwC -gnatf -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard -gno-record-gcc-switches -gnata -I- /<<PKGBUILDDIR>>/src/synth/synth-disp_vhdl.adb /<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb: In function ‘Ghdldrv.Gen_Makefile’: /<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb:2022:8: error: unrecognizable insn: (insn 1387 147 204 13 (parallel [ (set (mem/c:SI (plus:DI (reg/f:DI 29 x29) (const_int -260 [0xfffffffffffffefc])) [36 files_it+4 S4 A32]) (reg:SI 2 x2 [244])) (set (mem/c:SI (plus:DI (reg/f:DI 29 x29) (const_int -256 [0xffffffffffffff00])) [36 files_it+8 S4 A64]) (reg:SI 1 x1 [604])) ]) "/<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb":1926:19 -1 (expr_list:REG_DEAD (reg:SI 2 x2 [244]) (expr_list:REG_DEAD (reg:SI 1 x1 [604]) (nil)))) during RTL pass: cprop_hardreg +===========================GNAT BUG DETECTED==============================+ | 12.3.0 (aarch64-linux-gnu) in extract_insn, at recog.cc:2791 | | Error detected around /<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb:2022:8| | Compiling /<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb| | Please submit a bug report; see https://gcc.gnu.org/bugs/ . | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact command that you entered. | | Also include sources listed below. | +==========================================================================+ Full build log is at https://buildd.debian.org/status/fetch.php?pkg=ghdl&arch=arm64&ver=3.0.0%2Bdfsg2-1&stamp=1696130520&raw=0 I have access to a test machine and an interest to get this package to work, so if there are things I can do to help triaging this, please tell me.