public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53426] [4.8 Regression] ICE:create_variable_info_for at ../../gcc-trunk/gcc/tree-ssa-structalias.c:5581 Date: Tue, 22 May 2012 13:42:00 -0000 [thread overview] Message-ID: <bug-53426-4-PZtBekRLzk@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-53426-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53426 --- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-05-22 13:31:28 UTC --- OK, I see the following: 6882 FOR_EACH_VARIABLE (var) 6883 { 6884 if (var->alias) 6885 continue; 6886 6887 get_vi_for_tree (var->symbol.decl); 6888 } (gdb) p dump_varpool_node (stderr, var) _ZTVN5boost16exception_detail19error_info_injectorISt13runtime_errorEE.local.230/1658 (_ZTVN5boost16exception_detail19error_info_injectorISt13runtime_errorEE) @0x7ffff75f1e88 Type: variable Visibility: in_other_partition used_from_other_partition prevailing_def_ironly external public visibility_specified visibility:hidden virtual artificial References: Referring: _ZNK5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEE5cloneEv.local.151/2414 (addr)_ZNK5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEE5cloneEv.local.151/2414 (addr) Availability: overwritable Varpool flags: initialized finalized this var won't pass varpool_all_refs_explicit: it is from other partition and used from elsewhere. Partitioning should have put the variables referred by this constructor into a boundary and it is not doing it - I will fix that. (it gets that right at my internal symbol table tree) On the other hand, is ipa-pta able to take advantage of fact that the variable is readonly? I would propose: Index: tree-ssa-structalias.c =================================================================== --- tree-ssa-structalias.c (revision 187695) +++ tree-ssa-structalias.c (working copy) @@ -5583,7 +5583,8 @@ create_variable_info_for (tree decl, con /* If this is a global variable with an initializer and we are in IPA mode generate constraints for it. */ - if (DECL_INITIAL (decl)) + if (DECL_INITIAL (decl) + && vnode->analyzed) { VEC (ce_s, heap) *rhsc = NULL; struct constraint_expr lhs, *rhsp; I.e. to care only about constructors of vars from current partition. This function does not check varpool_all_refs_explicit as you suggested in previous comment.
next prev parent reply other threads:[~2012-05-22 13:41 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-53426-4@http.gcc.gnu.org/bugzilla/> 2012-05-20 20:01 ` [Bug lto/53426] [lto]: " pinskia at gcc dot gnu.org 2012-05-20 20:10 ` pinskia at gcc dot gnu.org 2012-05-21 10:04 ` [Bug lto/53426] [lto with ipa-pta]: " vincenzo.innocente at cern dot ch 2012-05-21 12:37 ` [Bug tree-optimization/53426] [4.8 Regression] " rguenth at gcc dot gnu.org 2012-05-21 15:09 ` hubicka at ucw dot cz 2012-05-22 10:16 ` rguenth at gcc dot gnu.org 2012-05-22 12:39 ` hubicka at ucw dot cz 2012-05-22 12:48 ` rguenth at gcc dot gnu.org 2012-05-22 12:56 ` hubicka at ucw dot cz 2012-05-22 13:42 ` hubicka at gcc dot gnu.org [this message] 2012-05-22 14:40 ` rguenth at gcc dot gnu.org 2012-05-23 8:11 ` vincenzo.innocente at cern dot ch 2012-05-23 10:49 ` hubicka at gcc dot gnu.org 2012-05-23 11:53 ` rguenth at gcc dot gnu.org 2012-05-23 12:27 ` vincenzo.innocente at cern dot ch
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-53426-4-PZtBekRLzk@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).