public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65536] LTO line number information garbled Date: Tue, 24 Mar 2015 20:22:00 -0000 [thread overview] Message-ID: <bug-65536-4-WGjFGIizT8@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-65536-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65536 --- Comment #23 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Manuel López-Ibáñez from comment #15) > (In reply to Jakub Jelinek from comment #14) > > By streaming the line_table directly you'd stream lots of location_t that > > are not actually used for anything that is streamed into the LTO. > > I don't understand why the tables would be huge, the string would of course > > use normal LTO section string sharing, and if we stream right now every > > location_t as the triplet, it would mean in case a single location_t is > > never used by more than one tree we'd stream an integer extra to what we > > stream now (just the triplets would be streamed in a different place), but > > in the more common case where one location_t is used by many trees, we'd > > stream less than what we stream now, due to the additional indirection. > [...] > Of course, if you are really unlucky, each location_t used by LTO may belong > to a different map, thus you cannot remove anything and then it would have > been more efficient to use a file:line:column table. In this worst case, the > overhead would be approximately sizeof(struct line_map) * number of rows in > the file:line:column table. In fact, looking at struct GTY(()) line_map_ordinary { const char *to_file; linenum_type to_line; /* An index into the set that gives the line mapping at whose end the current one was included. File(s) at the bottom of the include stack have this set to -1. */ int included_from; /* SYSP is one for a system header, two for a C system header file that therefore needs to be extern "C" protected in C++, and zero otherwise. This field isn't really needed now that it's in cpp_buffer. */ unsigned char sysp; /* Number of the low-order source_location bits used for a column number. */ unsigned int column_bits : 8; }; If we do not care about sysp and included_from, then even in the worst case, it will be more efficient to stream out the line_table than the file:line:column table. And it has the benefit that it is already sorted and the location_t values within trees/gimple can be streamed out directly without calling linemap_lookup to get the file:line:column for each of them. And since a location_t takes 1/3 of space that file:line:column, that would reduce the streamed out data even further. >From gcc-bugs-return-481507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 24 19:58:26 2015 Return-Path: <gcc-bugs-return-481507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57995 invoked by alias); 24 Mar 2015 19:58:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57233 invoked by uid 48); 24 Mar 2015 19:58:19 -0000 From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61358] Bogus "duplicate label" error after label used within C++11 lambda Date: Tue, 24 Mar 2015 20:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: NEW 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_status cf_reconfirmed_on cc blocked everconfirmed Message-ID: <bug-61358-4-zh4YhzVFUE@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-61358-4@http.gcc.gnu.org/bugzilla/> References: <bug-61358-4@http.gcc.gnu.org/bugzilla/> 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/msg02651.txt.bz2 Content-length: 543 https://gcc.gnu.org/bugzilla/show_bug.cgi?ida358 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-03-24 CC| |paolo.carlini at oracle dot com Blocks| |54367 Ever confirmed|0 |1
next prev parent reply other threads:[~2015-03-24 19:55 UTC|newest] Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-03-24 7:42 [Bug lto/65536] New: [5 regression] " hubicka at gcc dot gnu.org 2015-03-24 10:15 ` [Bug lto/65536] " rguenth at gcc dot gnu.org 2015-03-24 10:15 ` [Bug lto/65536] " rguenth at gcc dot gnu.org 2015-03-24 12:52 ` manu at gcc dot gnu.org 2015-03-24 13:32 ` rguenth at gcc dot gnu.org 2015-03-24 14:34 ` manu at gcc dot gnu.org 2015-03-24 14:42 ` manu at gcc dot gnu.org 2015-03-24 14:54 ` manu at gcc dot gnu.org 2015-03-24 16:22 ` jakub at gcc dot gnu.org 2015-03-24 16:44 ` manu at gcc dot gnu.org 2015-03-24 17:23 ` hubicka at ucw dot cz 2015-03-24 19:39 ` jakub at gcc dot gnu.org 2015-03-24 19:41 ` hubicka at gcc dot gnu.org 2015-03-24 19:51 ` manu at gcc dot gnu.org 2015-03-24 19:58 ` manu at gcc dot gnu.org 2015-03-24 20:22 ` manu at gcc dot gnu.org [this message] 2015-03-25 3:11 ` hubicka at gcc dot gnu.org 2015-03-25 3:22 ` manu at gcc dot gnu.org 2015-03-25 7:21 ` hubicka at ucw dot cz 2015-03-25 7:24 ` hubicka at ucw dot cz 2015-03-25 9:18 ` marxin at gcc dot gnu.org 2015-03-25 9:54 ` marxin at gcc dot gnu.org 2015-03-25 10:12 ` rguenth at gcc dot gnu.org 2015-03-25 10:45 ` rguenth at gcc dot gnu.org 2015-03-25 13:30 ` manu at gcc dot gnu.org 2015-03-25 18:13 ` hubicka at ucw dot cz 2015-03-25 21:40 ` hubicka at gcc dot gnu.org 2015-03-25 22:04 ` manu at gcc dot gnu.org 2015-03-25 23:36 ` manu at gcc dot gnu.org 2015-03-26 0:08 ` hubicka at gcc dot gnu.org 2015-03-26 0:19 ` manu at gcc dot gnu.org 2015-03-26 2:29 ` hubicka at ucw dot cz 2015-03-26 2:45 ` manu at gcc dot gnu.org 2015-03-26 17:49 ` manu at gcc dot gnu.org 2015-03-27 7:26 ` hubicka at gcc dot gnu.org 2015-03-27 8:11 ` hubicka at gcc dot gnu.org 2015-03-27 8:36 ` hubicka at gcc dot gnu.org 2015-03-27 15:47 ` manu at gcc dot gnu.org 2015-03-27 15:53 ` hubicka at ucw dot cz 2015-03-27 16:32 ` hubicka at ucw dot cz 2015-03-27 16:50 ` manu at gcc dot gnu.org 2015-03-27 19:39 ` hubicka at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-65536-4-WGjFGIizT8@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).