[patch] fix TM clone drops at LTO time

2012-01-23 Thread Aldy Hernandez
While working on PR51698, I've noticed the LTO/TM rabbit hole goes much deeper. The compiler is dropping transactional clones with -flto because the externally_visible bit is unset for clones. This is so because cgraph_copy_node_for_versioning unconditionally zaps it. I have fixed the TM in

Re: [patch] fix TM clone drops at LTO time

2012-01-23 Thread Richard Henderson
On 01/24/2012 04:16 AM, Aldy Hernandez wrote: > * trans-mem.c (ipa_tm_create_version): Set externally_visible. > (ipa_tm_create_version_alias): Same. Ok. r~