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

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).