This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: convert (long)round(d) -> lround(d), etc
>>>>> "Roger" == Roger Sayle <roger@eyesopen.com> writes:
Roger> My goof for not knowing this during review. Indeed this change was
Roger> made in order to better support the Java folks. However, I'm also
Roger> on Kaveh's side that perhaps the Java front-end should consider
Roger> defining additional "C" types to assist the middle-end in performing
Roger> this type of builtin optimization/transformation.
It seems to me that if these types are going to be used by the middle
end, then we might as well define them in the generic part of gcc.
And, more generally, I think it would be great if we could write down
exactly what the middle end expects in terms of defined types, and
anything else like that, to make writing a front end a more
well-defined experience.
Tom