From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE835386F430; Thu, 30 Jul 2020 15:42:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE835386F430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596123770; bh=OE4bwKuTVEZ1ppClZibc4QI+U3zFKTF3xQIzd+1Y+WA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eAdXZxDyKx0JfU0ckeLz8N+Su50BpUTdvdXLYptStllfyBKkpHNdDnaCyCjDedfxo pIYAPfzmq9gEAz72OoSlN9mKmh1/DDQC1IOoOuUD111aQEUMJ+EuVlI5O5Zm2LAZYh 48X/cZOSatc0FnFyGdhxcRigEZub2+lwuXdjHYUE= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/94440] [8/9/10/11 Regression] ICE in check_bool_attrs, at recog.c:2168 since r7-5324-gb8cab8a5492e9639 Date: Thu, 30 Jul 2020 15:42:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2020 15:42:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94440 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #7 from David Binderman --- Another test case.=20 This C code: double a; b; long double c; e() { float d =3D (double)(long double)b; } __attribute__((optimize(""))) f() { a =3D c; } when compiled by recent gcc trunk and compiler flag -ffast-math, does this: uring RTL pass: reload bug634.c: In function =E2=80=98f=E2=80=99: bug634.c:5:44: internal compiler error: in check_bool_attrs, at recog.c:2169 5 | __attribute__((optimize(""))) f() { a =3D c; } | ^ 0xc42e4c check_bool_attrs(rtx_insn*) ../../trunk.git/gcc/recog.c:2168 0xafb3fc lra_update_insn_recog_data(rtx_insn*) ../../trunk.git/gcc/lra.c:1260 0xb18199 eliminate_regs_in_insn(rtx_insn*, bool, bool, poly_int<1u, long>) ../../trunk.git/gcc/lra-eliminations.c:0 0xb18b87 process_insn_for_elimination(rtx_insn*, bool, bool) ../../trunk.git/gcc/lra-eliminations.c:1304 This has been going wrong since sometime before date 20200630.=