From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0766D3857835; Tue, 25 Aug 2020 19:59:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0766D3857835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598385568; bh=bDjtJ+gewyjL27bJ3XU4GhXSxjiR8IX/C9wN3dGzMFQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bsucj/NkKJyHAXNpCNHhCfApMq4yUqxDz5/yrOvLEXrOoVsL0m4Y3CUTUbDW+ri27 95qQ/3PvlL8tGFEEBxjO8198M99OKkaClykbmczTOKn9ezLbtJ2tL3cqk0nACtV/1O scRLzlRJwftSeyJIli+pmwzgJNy62dI0qEr57a+o= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/96729] [11 Regression] slow compile with `-g -O3` since r11-39-gf9e1ea10e657af9f Date: Tue, 25 Aug 2020 19:59:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Tue, 25 Aug 2020 19:59:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96729 --- Comment #6 from Jakub Jelinek --- Created attachment 49121 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49121&action=3Dedit gcc11-pr96729.patch Untested fix for the next real insn caching. $ time ./cc1.vanilla -quiet -g -O3 pr96729.c -dA real 0m2.756s user 0m2.728s sys 0m0.022s $ time ./cc1 -quiet -g -O3 pr96729.c -dA real 0m1.040s user 0m1.018s sys 0m0.020s and the generated assembly is identical. The times are with -O0 built debugging cc1, so I really can't reproduce spending 60s on that, that would need extremely slow machine.=