public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions @ 2012-03-16 16:49 jamborm at gcc dot gnu.org 2012-04-23 17:05 ` [Bug lto/52605] " jamborm at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: jamborm at gcc dot gnu.org @ 2012-03-16 16:49 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52605 Bug #: 52605 Summary: LTO -g ICE when looking up context of VMTs of classes defined within functions Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned@gcc.gnu.org ReportedBy: jamborm@gcc.gnu.org Host: x86_64-linux-gnu Target: x86_64-linux-gnu Created attachment 26905 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26905 Testcase When compiling the attached testcase with -flto and -g, I get the following ICE: lto1: internal compiler error: tree check: expected tree that contains ‘decl minimal’ structure, have ‘record_type’ in lookup_decl_die, at dwarf2out.c:5118 This is the same problem I first encountered when LTOing Firefox and which I reported in the mailing list a while ago (http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00551.html) but this testcase is close to minimal. The reason why we do not hit this wrong use of decl_function_context without LTO is that the function dwarf2out_decl is never called on VMTs when not doing LTO. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/52605] LTO -g ICE when looking up context of VMTs of classes defined within functions 2012-03-16 16:49 [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions jamborm at gcc dot gnu.org @ 2012-04-23 17:05 ` jamborm at gcc dot gnu.org 2012-05-02 19:51 ` jamborm at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jamborm at gcc dot gnu.org @ 2012-04-23 17:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52605 Martin Jambor <jamborm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org Known to fail| |4.7.0, 4.8.0 --- Comment #1 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-04-23 17:04:23 UTC --- This is still the only problem that prevents me from LTO building Firefox with -g. Moreover, I have just verified the problem is also present also in 4.7 (and it's also the only one). I really think we should fix this for 4.7.1. My patch proposed on the mailing list still applies (to both trunk and the branch). ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/52605] LTO -g ICE when looking up context of VMTs of classes defined within functions 2012-03-16 16:49 [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions jamborm at gcc dot gnu.org 2012-04-23 17:05 ` [Bug lto/52605] " jamborm at gcc dot gnu.org @ 2012-05-02 19:51 ` jamborm at gcc dot gnu.org 2012-05-03 17:01 ` jamborm at gcc dot gnu.org 2012-05-03 17:02 ` jamborm at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jamborm at gcc dot gnu.org @ 2012-05-02 19:51 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52605 --- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-05-02 19:50:40 UTC --- Author: jamborm Date: Wed May 2 19:50:37 2012 New Revision: 187063 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187063 Log: 2012-05-02 Martin Jambor <mjambor@suse.cz> PR lto/52605 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context of a variable when the contect is a function. * gcc/testsuite/g++.dg/lto/pr52605_0.C: New test. Added: trunk/gcc/testsuite/g++.dg/lto/pr52605_0.C Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/52605] LTO -g ICE when looking up context of VMTs of classes defined within functions 2012-03-16 16:49 [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions jamborm at gcc dot gnu.org 2012-04-23 17:05 ` [Bug lto/52605] " jamborm at gcc dot gnu.org 2012-05-02 19:51 ` jamborm at gcc dot gnu.org @ 2012-05-03 17:01 ` jamborm at gcc dot gnu.org 2012-05-03 17:02 ` jamborm at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jamborm at gcc dot gnu.org @ 2012-05-03 17:01 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52605 --- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-05-03 17:00:48 UTC --- Author: jamborm Date: Thu May 3 17:00:32 2012 New Revision: 187109 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187109 Log: 2012-05-03 Martin Jambor <mjambor@suse.cz> PR lto/52605 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context of a variable when the contect is a function. * gcc/testsuite/g++.dg/lto/pr52605_0.C: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/g++.dg/lto/pr52605_0.C Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/dwarf2out.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/52605] LTO -g ICE when looking up context of VMTs of classes defined within functions 2012-03-16 16:49 [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions jamborm at gcc dot gnu.org ` (2 preceding siblings ...) 2012-05-03 17:01 ` jamborm at gcc dot gnu.org @ 2012-05-03 17:02 ` jamborm at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jamborm at gcc dot gnu.org @ 2012-05-03 17:02 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52605 Martin Jambor <jamborm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-05-03 17:01:45 UTC --- This should now be fixed. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-03 17:02 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-03-16 16:49 [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions jamborm at gcc dot gnu.org 2012-04-23 17:05 ` [Bug lto/52605] " jamborm at gcc dot gnu.org 2012-05-02 19:51 ` jamborm at gcc dot gnu.org 2012-05-03 17:01 ` jamborm at gcc dot gnu.org 2012-05-03 17:02 ` jamborm at gcc dot gnu.org
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).