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 lto/59468] [4.9 Regression] ICE on invalid C++ code with LTO in gimple_get_virt_method_for_binfo, at gimple-fold.c:3224 Date: Tue, 11 Feb 2014 22:54:00 -0000 [thread overview] Message-ID: <bug-59468-4-IFReUEYVqK@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59468-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59468 --- Comment #11 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Tue Feb 11 22:54:21 2014 New Revision: 207702 URL: http://gcc.gnu.org/viewcvs?rev=207702&root=gcc&view=rev Log: PR lto/59468 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype and wrapper. * ipa-devirt.c: Include demangle.h (odr_violation_reported): New static variable. (add_type_duplicate): Update odr_violations. (maybe_record_node): Add completep parameter; update it. (record_target_from_binfo): Add COMPLETEP parameter; update it as needed. (possible_polymorphic_call_targets_1): Likewise. (struct polymorphic_call_target_d): Add nonconstruction_targets; rename FINAL to COMPLETE. (record_targets_from_bases): Sanity check we found the binfo; fix COMPLETEP updating. (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP parameter, fix computing of COMPLETEP. (dump_possible_polymorphic_call_targets): Imrove readability of dump; at LTO time do demangling. (ipa_devirt): Use nonconstruction_targets; Improve dumps. * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer parameter. (gimple_get_virt_method_for_binfo): Likewise. * gimple-fold.h (gimple_get_virt_method_for_binfo, gimple_get_virt_method_for_vtable): Update prototypes. PR lto/59468 * g++.dg/ipa/devirt-27.C: New testcase. * g++.dg/ipa/devirt-26.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/ipa/devirt-26.C trunk/gcc/testsuite/g++.dg/ipa/devirt-27.C Modified: trunk/gcc/ChangeLog trunk/gcc/cp/decl2.c trunk/gcc/gimple-fold.c trunk/gcc/gimple-fold.h trunk/gcc/ipa-devirt.c trunk/gcc/ipa-utils.h trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2014-02-11 22:54 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-12-11 12:52 [Bug lto/59468] New: " d.g.gorbachev at gmail dot com 2013-12-11 13:22 ` [Bug lto/59468] [4.9 Regression] " rguenth at gcc dot gnu.org 2013-12-11 14:23 ` rguenth at gcc dot gnu.org 2013-12-11 15:06 ` d.g.gorbachev at gmail dot com 2013-12-16 13:29 ` hubicka at gcc dot gnu.org 2013-12-16 22:40 ` d.g.gorbachev at gmail dot com 2013-12-16 23:03 ` hubicka at gcc dot gnu.org 2013-12-19 15:40 ` rguenth at gcc dot gnu.org 2014-02-11 18:07 ` d.g.gorbachev at gmail dot com 2014-02-11 22:54 ` hubicka at gcc dot gnu.org [this message] 2014-03-14 8:45 ` jakub 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-59468-4-IFReUEYVqK@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).