Re: [PATCH] Fix cgraph_node::rtl_info (PR target/77587)

2016-09-17 Thread Jan Hubicka
> Hi! > > On the following testcase the weak alias can be overridden, so we shouldn't > assume because we see bar to be alias to foo and have foo definition that > call to bar will bind to the current TU's foo. > cgraph_node::rtl_info calls ultimate_alias_target without checking if it can > be ove

[PATCH] Fix cgraph_node::rtl_info (PR target/77587)

2016-09-16 Thread Jakub Jelinek
Hi! On the following testcase the weak alias can be overridden, so we shouldn't assume because we see bar to be alias to foo and have foo definition that call to bar will bind to the current TU's foo. cgraph_node::rtl_info calls ultimate_alias_target without checking if it can be overridden or not