From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E4D813861813; Wed, 6 Dec 2023 06:46:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4D813861813 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701845181; bh=37Hq6ncacT8/IVvXtBSD5T4FqHCEik3dUFAY29ZmGWc=; h=From:To:Subject:Date:From; b=G/5NqVxeULZWGvVxiYz+nbVC0qU/HJpUMHD4Pw0HZilF05ahFSZtNMdTobn2vwTiD kXE+IQqmkbDtSxQztPdtWCx+fCz1hXTkrBWYPpeqTlx0d8ZR7SHOjpO6d5sXa7zJ5P WN/X4JG3G4K/Xmv0k4cBN6cHmDjuS7nNXgUmB1Qc= From: "iamanonymous.cs at gmail dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iamanonymous.cs at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112875 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=3D/root/gcc_set/202311291030/bin/gcc COLLECT_LTO_WRAPPER=3D/root/gcc_set/202311291030/libexec/gcc/x86_64-pc-linu= x-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/root/gcc_set/202311291030 --with-gmp=3D/root/build_essential --with-mpfr=3D/root/build_essential --with-mpc=3D/root/build_essential --enable-languages=3Dc,c++ --disable-mul= tilib --with-sanitizer=3Daddress,undefined,thread,leak Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231129 (experimental) (GCC)=20 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 =3D b, n =3D g, o =3D 0; int p, q, r =3D h; long s =3D g; if (f) { q =3D t + (float)16777217; o =3D ~0; } if (e) { d =3D g + a; if (d % (a % l)) { p =3D d; n =3D b; } if (l) { i =3D b; r =3D a; p =3D h; } if (s) s =3D q; c =3D f; e +=3D t; a =3D p; } j =3D r % n; s +=3D g / 0xc000000000000000 + !o; } ***************************************************************************= **** Compiler explorer:=20 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 =E2=80=98k=E2=80=99: 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 for instructions. Also ICE on trunk, compiler explorer: https://godbolt.org/z/39PEKqEzc=