On Mon, 8 Dec 2014, Richard Biener wrote:

> The alternative is to decide "used" in the middle-end at one point,
> for example at the end of all_lowering_passes where hopefully
> we have constant folded and removed dead code enough.  We can also
> compute an overall "uses libm" flag to fix the testcase I reported
> (of course we'd like to re-compute that at LTO time).

If you do that, of course any optimizations before deciding "used" need to 
be conservative - assume that any function except the one you're 
optimizing a call of is not "used".

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to