http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48044
--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> 2011-03-10 12:51:19 UTC --- > I wonder if cgraph_remove_unreachable_nodes shouldn't be somehow alias pairs > aware (can it e.g. call find_aliases_1 again?), or at least for !optimize > shouldn't it avoid clearing vnode->needed for vnode->force_output? I guess the second (probably even when optimizing). The idea of alias pair handling in current cgraph is to pretend they do not exist and have the code in visibility pass marking them force_output and thus disabling much of optimization around them. For 4.7 we need to rewrite this in favour of proper symbol table that is quite some effort to do ;( I will look into this today. Honza