From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111846 invoked by alias); 25 Mar 2015 06:25:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 111416 invoked by uid 55); 25 Mar 2015 06:25:01 -0000 From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65536] LTO line number information garbled Date: Wed, 25 Mar 2015 07:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at ucw dot cz X-Bugzilla-Status: UNCONFIRMED 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg02682.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65536 --- Comment #26 from Jan Hubicka --- this is a proof of concept patch that makes streamer in to collect locations into a "cache" and apply them in sorted order (looking up correct max_column hints) at the end of handling of a given section. It also has facility to throw away locations of trees that are freed. while sorting at stream in time is not cool, it does not show top in the profiles and memory use of the cache is actually dominated by other stuff we read, so this seems to work quite well in practice. Main problem would be if someone copied/used the locator before cache is applied. This helps to get all lines and most of carrets right on firefox. I killed my Chromium tree so can't test it there (Martin, perhaps you could try?) I did not have much time today to test the patch. It also saves quite a lot of memory, about 400MB on firefox I guess. Honza