public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/112712] New: Crash when compiling g++ -m68020-60 -O2
@ 2023-11-25 23:29 miro.kropacek at gmail dot com
2023-11-26 13:53 ` [Bug target/112712] " mikpelinux at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: miro.kropacek at gmail dot com @ 2023-11-25 23:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112712
Bug ID: 112712
Summary: Crash when compiling g++ -m68020-60 -O2
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: miro.kropacek at gmail dot com
Target Milestone: ---
Created attachment 56688
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56688&action=edit
Preprocessed output
This is a crash which seems to be specific to the -m68020-60 option (or better
said to 060 code generation as the only other option where this bugs occurs is
-m68060). When changing to any other CPU (-m68000, -mcpu=5475, ...) and/or
changing to -O1, -O0, ... everything is fine.
See the attached preprocessed file which triggers the bug:
m68k-elf-g++ -c -g -O2 -m68020-60 -fomit-frame-pointer -funsigned-char
-std=gnu++20 -fvisibility=hidden -Wno-sign-compare crash.cpp
similar/main/multi.cpp:6167:1: internal compiler error: in push_reload, at
reload.cc:1124
6167 | }
| ^
0x15fee77 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, __va_list_tag (*) [1], diagnostic_t)
???:0
0x15ffd3c internal_error(char const*, ...)
???:0
0x5e9465 fancy_abort(char const*, int, char const*)
???:0
0x5c9a9d push_reload(rtx_def*, rtx_def*, rtx_def**, rtx_def**, reg_class,
machine_mode, machine_mode, int, int, int, reload_type) [clone .cold]
???:0
0xca2ffb find_reloads(rtx_insn*, int, int, int, short*)
???:0
0xcb0dcb reload(rtx_insn*, int)
???:0
0xb4657a (anonymous namespace)::pass_reload::execute(function*)
???:0
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/112712] Crash when compiling g++ -m68020-60 -O2
2023-11-25 23:29 [Bug c++/112712] New: Crash when compiling g++ -m68020-60 -O2 miro.kropacek at gmail dot com
@ 2023-11-26 13:53 ` mikpelinux at gmail dot com
2023-11-27 8:07 ` rguenth at gcc dot gnu.org
2023-11-27 21:12 ` mikpelinux at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: mikpelinux at gmail dot com @ 2023-11-26 13:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112712
Mikael Pettersson <mikpelinux at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpelinux at gmail dot com
--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
I can reproduce with a gcc-13.2 cross to m68k-elf w/ c++:
during RTL pass: reload
similar/main/multi.cpp: In function 'void d1x::multi_object_to_object_rw(const
object&, object_rw*)':
similar/main/multi.cpp:6167:1: internal compiler error: in push_reload, at
reload.cc:1124
0x422a9d push_reload(rtx_def*, rtx_def*, rtx_def**, rtx_def**, reg_class,
machine_mode, machine_mode, int, int, int, reload_type)
/mnt/scratch/cross/downloads/gcc-mirror-gcc.git/gcc/reload.cc:1124
0xabcda1 find_reloads(rtx_insn*, int, int, int, short*)
/mnt/scratch/cross/downloads/gcc-mirror-gcc.git/gcc/reload.cc:4049
0xaca6ea calculate_needs_all_insns
/mnt/scratch/cross/downloads/gcc-mirror-gcc.git/gcc/reload1.cc:1469
0xaca6ea reload(rtx_insn*, int)
/mnt/scratch/cross/downloads/gcc-mirror-gcc.git/gcc/reload1.cc:983
0x96f784 do_reload
/mnt/scratch/cross/downloads/gcc-mirror-gcc.git/gcc/ira.cc:5975
0x96f784 execute
/mnt/scratch/cross/downloads/gcc-mirror-gcc.git/gcc/ira.cc:6149
The given test case doesn't compile with older g++ versions so I can't bisect.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/112712] Crash when compiling g++ -m68020-60 -O2
2023-11-25 23:29 [Bug c++/112712] New: Crash when compiling g++ -m68020-60 -O2 miro.kropacek at gmail dot com
2023-11-26 13:53 ` [Bug target/112712] " mikpelinux at gmail dot com
@ 2023-11-27 8:07 ` rguenth at gcc dot gnu.org
2023-11-27 21:12 ` mikpelinux at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-27 8:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112712
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-11-27
Keywords| |ice-on-valid-code, ra
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/112712] Crash when compiling g++ -m68020-60 -O2
2023-11-25 23:29 [Bug c++/112712] New: Crash when compiling g++ -m68020-60 -O2 miro.kropacek at gmail dot com
2023-11-26 13:53 ` [Bug target/112712] " mikpelinux at gmail dot com
2023-11-27 8:07 ` rguenth at gcc dot gnu.org
@ 2023-11-27 21:12 ` mikpelinux at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: mikpelinux at gmail dot com @ 2023-11-27 21:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112712
--- Comment #2 from Mikael Pettersson <mikpelinux at gmail dot com> ---
It appears the test case comes from https://github.com/dxx-rebirth/dxx-rebirth/
(a port of the old Descent game engine).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-27 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-25 23:29 [Bug c++/112712] New: Crash when compiling g++ -m68020-60 -O2 miro.kropacek at gmail dot com
2023-11-26 13:53 ` [Bug target/112712] " mikpelinux at gmail dot com
2023-11-27 8:07 ` rguenth at gcc dot gnu.org
2023-11-27 21:12 ` mikpelinux at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).