This is the mail archive of the gcc-bugs@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]

[Bug target/54686] std::abs (long long) resorts to std::abs (double) if llabs is absent


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54686

--- Comment #10 from Marc Glisse <glisse at gcc dot gnu.org> 2012-09-23 21:37:54 UTC ---
(In reply to comment #8)
> Thanks god (or whoever)

Would that make me a half-god? seems dangerous...

> that the following:
> 
> unsigned int test_xx (unsigned int a)
> {
>   return std::abs (a);
> }
> 
> ends up as a nop.  *phew*.

Try it with long (or long long) instead of int now...


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