On Fri, 4 Jul 2014, Kyrill Tkachov wrote:

> These end up taking different codepaths through the compiler () because
> __builtin_lround has to take -fmath-errno into account and does not end up
> getting inlined (generating a call to the library lround).

That suggests this transformation is buggy unless -fno-math-errno is used 
(given the existence of cases where round + cast must not set errno, but 
lround may).  A bug should be filed in Bugzilla for this.

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

Reply via email to