From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E20583858D32; Mon, 3 Oct 2022 02:03:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E20583858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664762606; bh=1WtH2FBFWKYBbe9Hxo6Jm9Q3dbmMYP7gNah6Fd6Way4=; h=From:To:Subject:Date:From; b=MKJEIu+aia1c05/EdV5uCBfVtnrHnoxmQr015idAUbwREY/OToBIIllVDVSFd4y3v pKLcZw4vGQ8E7w91ZLaGNLuuIpX1in3hVghQOhyEW53S03Lm3hR5IZBxNoo5lDnfmK 42peUhv8nrXuebI0jf7lsK0YIpgtj26QLasPrTHI= From: "inform at tiker dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107127] New: [Regression 11/12] Long compile times on code with C complex Date: Mon, 03 Oct 2022 02:03:23 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: inform at tiker dot net 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=3D107127 Bug ID: 107127 Summary: [Regression 11/12] Long compile times on code with C complex Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: inform at tiker dot net Target Milestone: --- A generated code using C-style complex arithmetic that compiled nearly instantaneously with gcc 10.4 takes >=3D30s with gcc 11.3.0 and 12.2.0. How to reproduce: git clone https://gist.github.com/inducer/802e227e86e3ff4fd95aa0fefae462fe.= git=20 cd 802e227e86e3ff4fd95aa0fefae462fe git checkout 9eb600e $ time gcc-10 -c post-110.c gcc-10 -c post-110.c 0,05s user 0,02s system 45% cpu 0,155 total $ time gcc-11 -c post-110.c ^C gcc-11 -c post-110.c 0,00s user 0,00s system 0% cpu 23,757 total $ time gcc-12 -c post-110.c ^C gcc-12 -c post-110.c 0,00s user 0,00s system 0% cpu 31,574 total This does not seem to be very sensitive to headers, so I'm not including preprocessed source to start. Happy to supply it if needed. Target: x86_64-linux-gnu Precise versions: gcc version 10.4.0 (Debian 10.4.0-5) gcc version 11.3.0 (Debian 11.3.0-5) gcc version 12.2.0 (Debian 12.2.0-3) x-ref: https://github.com/inducer/loopy/issues/686=