public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [trans-mem] cgraph edges vs function cloning
@ 2009-07-23  1:39 Richard Henderson
  2009-07-23 17:28 ` Jan Hubicka
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Henderson @ 2009-07-23  1:39 UTC (permalink / raw)
  To: jh, gcc

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~

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-07-29 16:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-23  1:39 [trans-mem] cgraph edges vs function cloning Richard Henderson
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

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).