[PATCH]: convert (long)round(d) -> lround(d), etc

Roger Sayle roger@eyesopen.com
Thu Apr 29 15:42:00 GMT 2004


On Thu, 29 Apr 2004, Kaveh R. Ghazi wrote:
> If someone wants to approve the patch now or can test it faster than I
> can, please let me know.  Otherwise I'll go ahead and install it once
> testing is complete.

This fix looks "obviously" correct.  Consider it approved.

My goof for not knowing this during review.  Indeed this change was
made in order to better support the Java folks.  However, I'm also
on Kaveh's side that perhaps the Java front-end should consider
defining additional "C" types to assist the middle-end in performing
this type of builtin optimization/transformation.

> 2004-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
>
> 	* convert.c (convert_to_integer): Ensure `long_integer_type_node'
> 	isn't NULL.

Roger
--



More information about the Gcc-patches mailing list