From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1FCF03840C0B; Thu, 14 May 2020 06:51:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FCF03840C0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589439060; bh=l1ICCeqRR3X51xawxjWwtkLyQzDAgF91VhqNPkZSvaw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X/Ea7bp2Fl3ZJdrA/1eLDtS4WGHkh3hxPbruRSugXQzHDwk4oXeJDho13nH+Egrc+ i9DtQ9FO6QmslGZhRzznJ2c89zyKVtgIIep2tjkYTZD40hJ0bjdMLCAo8SWnGyUXBL qmcFq0W7Dlj7RsEfyXqGQWnrbNh8lbbVRIGvDXFs= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95118] [10/11 Regression] gcc-10 and master -O3 -fopt-info-vec causes gcc to hang Date: Thu, 14 May 2020 06:50:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority keywords assigned_to bug_status target_milestone short_desc everconfirmed cf_reconfirmed_on cf_known_to_work 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, 14 May 2020 06:51:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95118 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Keywords| |compile-time-hog Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Status|UNCONFIRMED |ASSIGNED Target Milestone|--- |10.2 Summary|gcc-10 and master -O3 |[10/11 Regression] gcc-10 |-fopt-info-vec causes gcc |and master -O3 |to hang |-fopt-info-vec causes gcc | |to hang Ever confirmed|0 |1 Last reconfirmed| |2020-05-14 Known to work| |9.3.0 --- Comment #5 from Richard Biener --- On the GCC 10 branch I see it not returning from (gdb) fin Run till exit from #0 0x000000000107148d in real_to_decimal_for_mode ( str=3D0x7fffffffcd60 "\200", r_orig=3D0x7fffffffcd40, buf_size=3D100, d= igits=3D57,=20 crop_trailing_zeros=3D1, mode=3DE_VOIDmode) at /space/rguenther/src/gcc-10-branch/gcc/real.c:1718 we're in this loop: while (1) { /* Stop if we'd shift bits off the bottom. */ if (v.sig[0] & 7) break; do_multiply (&u, &v, ten); /* Stop if we're now >=3D 1. */ if (REAL_EXP (&u) > 0) break; v =3D u; dec_exp -=3D 1; } (gdb) p u $1 =3D {cl =3D 0, decimal =3D 0, sign =3D 0, signalling =3D 0, canonical = =3D 0, uexp =3D 0,=20 sig =3D {0, 0, 0}} and the original REAL_VALUE_TYPE is (gdb) p *r_orig $4 =3D {cl =3D 1, decimal =3D 0, sign =3D 0, signalling =3D 0, canonical = =3D 0,=20 uexp =3D 67092486, sig =3D {0, 0, 0}} so it's simply a weird not normalized constant zero ... I have a patch to paper over this in real_to_decimal_for_mode which then prints a (0.0e-8191); for the specific number.=