public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "iamanonymous.cs at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112875] New: ICE: in lra_eliminate_regs_1, at lra-eliminations.cc:670 with -Oz -frounding-math -fno-dce -fno-trapping-math -fno-tree-dce -fno-tree-dse -g Date: Wed, 06 Dec 2023 06:46:21 +0000 [thread overview] Message-ID: <bug-112875-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112875 Bug ID: 112875 Summary: ICE: in lra_eliminate_regs_1, at lra-eliminations.cc:670 with -Oz -frounding-math -fno-dce -fno-trapping-math -fno-tree-dce -fno-tree-dse -g Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- ******************************************************************************* OS and Platform: $ uname -a: Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ******************************************************************************* gcc version: $ gcc -v Using built-in specs. COLLECT_GCC=/root/gcc_set/202311291030/bin/gcc COLLECT_LTO_WRAPPER=/root/gcc_set/202311291030/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/root/gcc_set/202311291030 --with-gmp=/root/build_essential --with-mpfr=/root/build_essential --with-mpc=/root/build_essential --enable-languages=c,c++ --disable-multilib --with-sanitizer=address,undefined,thread,leak Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231129 (experimental) (GCC) git version: 99fa0bfd63d97825c4221dcd3123940f1d0e6291 ******************************************************************************* Program: $ cat mutant.c long a, f; int b, c, d, g, h, i, j; char e; void k(long, int l, char t) { char m = b, n = g, o = 0; int p, q, r = h; long s = g; if (f) { q = t + (float)16777217; o = ~0; } if (e) { d = g + a; if (d % (a % l)) { p = d; n = b; } if (l) { i = b; r = a; p = h; } if (s) s = q; c = f; e += t; a = p; } j = r % n; s += g / 0xc000000000000000 + !o; } ******************************************************************************* Compiler explorer: Command Lines: $ gcc -Oz -frounding-math -fno-dce -fno-trapping-math -fno-tree-dce -fno-tree-dse -g mutant.c during RTL pass: reload mutant.c: In function ‘k’: mutant.c:31:1: internal compiler error: in lra_eliminate_regs_1, at lra-eliminations.cc:670 31 | } | ^ 0x7bbb24 lra_eliminate_regs_1(rtx_insn*, rtx_def*, machine_mode, bool, bool, poly_int<1u, long>, bool) ../../gcc/gcc/lra-eliminations.cc:670 0xe38f0e lra_eliminate_regs_1(rtx_insn*, rtx_def*, machine_mode, bool, bool, poly_int<1u, long>, bool) ../../gcc/gcc/lra-eliminations.cc:446 0xe38c08 lra_eliminate_regs_1(rtx_insn*, rtx_def*, machine_mode, bool, bool, poly_int<1u, long>, bool) ../../gcc/gcc/lra-eliminations.cc:613 0xe396c4 eliminate_regs_in_insn(rtx_insn*, bool, bool, poly_int<1u, long>) ../../gcc/gcc/lra-eliminations.cc:1046 0xe3a029 process_insn_for_elimination ../../gcc/gcc/lra-eliminations.cc:1375 0xe3a029 lra_eliminate(bool, bool) ../../gcc/gcc/lra-eliminations.cc:1473 0xe1d759 lra(_IO_FILE*) ../../gcc/gcc/lra.cc:2553 0xdd3241 do_reload ../../gcc/gcc/ira.cc:5973 0xdd3241 execute ../../gcc/gcc/ira.cc:6161 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. Also ICE on trunk, compiler explorer: https://godbolt.org/z/39PEKqEzc
next reply other threads:[~2023-12-06 6:46 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-06 6:46 iamanonymous.cs at gmail dot com [this message] 2023-12-06 8:02 ` [Bug rtl-optimization/112875] [14 Regression] " rguenth at gcc dot gnu.org 2023-12-08 16:14 ` jakub at gcc dot gnu.org 2023-12-08 19:32 ` vmakarov at gcc dot gnu.org 2023-12-08 20:52 ` cvs-commit at gcc dot gnu.org 2024-02-06 15:30 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-112875-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).