This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Some __builtin_round and cast subtleties


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
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]