From: Richard Henderson <rth@twiddle.net>
To: jh@suse.cz, gcc@gcc.gnu.org
Subject: [trans-mem] cgraph edges vs function cloning
Date: Thu, 23 Jul 2009 01:39:00 -0000 [thread overview]
Message-ID: <4A67BF29.9090208@twiddle.net> (raw)
Could I convince you to have a look at the transactional-memory branch
test libitm/testsuite/libitm.c++/eh-1.C? I'm getting
z.c:36:1: error: edge void f1()->void* __cxa_allocate_exception(long
unsigned int) has no corresponding call_stmt
D.2114_4 = __cxa_allocate_exception (4);
z.c:36:1: error: edge void f1()->void __cxa_throw(void*, void*, void
(*)(void*)) has no corresponding call_stmt
__cxa_throw (D.2114_4, &_ZTIi, 0B);
void f1()/10(-1) @0x7ffff2d75500 availability:available 32 time, 10
benefit 14 size, 1 benefit reachable body finalized
called by: void f2()/1 (1.00 per call) (can throw external)
calls: void _ITM_cxa_throw(void*, void*, void (*)(void*))/12 (1.00
per call) (can throw external) void* _ITM_cxa_allocate_exception(long
unsigned int)/11 (1.00 per call) void* __cxa_allocate_exception(long
unsigned int)/8 (1.00 per call) void __cxa_throw(void*, void*, void
(*)(void*))/9 (1.00 per call) (can throw external)
z.c:36:1: internal compiler error: verify_cgraph_node failed
This happens because cgraph_copy_node_for_versioning duplicated all of
the callee edges from the original function, and
tree_function_versioning created new edges when copying the body of the
function instead of updating the edges we duplicated.
Frankly, the unholy mess of edge update options has me stumped. I have
no idea what's going on in this area. Why bother with any of it anyway?
Why not just always create all new callee edges when instantiating the
new body?
r~
next reply other threads:[~2009-07-23 1:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 1:39 Richard Henderson [this message]
2009-07-23 17:28 ` Jan Hubicka
2009-07-23 20:59 ` Richard Henderson
2009-07-27 23:08 ` Richard Henderson
2009-07-28 17:16 ` Jan Hubicka
2009-07-28 17:44 ` Richard Henderson
2009-07-28 23:26 ` Richard Henderson
2009-07-29 6:43 ` Jan Hubicka
2009-07-29 7:27 ` Martin Jambor
2009-07-29 16:24 ` Richard Henderson
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=4A67BF29.9090208@twiddle.net \
--to=rth@twiddle.net \
--cc=gcc@gcc.gnu.org \
--cc=jh@suse.cz \
/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: link
Be 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).