From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FEC13840C17; Wed, 29 Jul 2020 14:23:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FEC13840C17 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596032623; bh=71aR24Upw3gilaKId5gh/ne4wn4bnCd3Ez8uxTCoA0k=; h=From:To:Subject:Date:From; b=RGElfrD/RgiqbZbHDghI0LSjabzptQgTcH7D3OkOLQoMc0zQAMQv0G+PS2QXNR6Gu Hi0RTx+fKJeystjqtXM1T7qL1O3Oae05vIl3F2GLy0RuUE4i6R2cSm9T96YCAswaST 6jR1RHYeCz6zRiPFDvcY2yPpL0L0teVq6vUXkvfg= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/96370] New: ice with -ffast-math Date: Wed, 29 Jul 2020 14:23:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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 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: Wed, 29 Jul 2020 14:23:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96370 Bug ID: 96370 Summary: ice with -ffast-math Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Recent gcc trunk, with this C source code: a() { _Decimal128 b; c(-b * b); } and compiler flag -O2 -ffast-math, does this: during GIMPLE pass: reassoc bug633.c: In function =E2=80=98a=E2=80=99: bug633.c:1:1: internal compiler error: in gimple_build_assign_1, at gimple.c:455 1 | a() { | ^ 0x96e82e gimple_build_assign_1(tree_node*, tree_code, tree_node*, tree_node= *, tr ee_node*) ../../trunk.git/gcc/gimple.c:455 0xec0a0b rewrite_expr_tree(gimple*, unsigned int, vec, bool, bool) ../../trunk.git/gcc/tree-ssa-reassoc.c:4963 0xec0828 rewrite_expr_tree(gimple*, unsigned int, vec, bool, bool) ../../trunk.git/gcc/tree-ssa-reassoc.c:5007 0xeb6d9e reassociate_bb(basic_block_def*) ../../trunk.git/gcc/tree-ssa-reassoc.c:6480 The bug seems to have existed since sometime before 20200630. Thanks to cvise for reducing the code quickly.=