This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Two places in GCC doing (float)func(x) -> funcf(x) ??
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc at gcc dot gnu dot org
- Cc: roger at eyesopen dot com
- Date: Sat, 13 Mar 2004 18:05:34 -0500 (EST)
- Subject: Two places in GCC doing (float)func(x) -> funcf(x) ??
I see two places that ostensibly claim to transform for example:
(float)trunc((float)foo) -> truncf(foo)
one place is in convert_to_real() and one place is in
fold_trunc_transparent_mathfn().
I had a couple of questions:
1. Why two places? Are they equivalent or did I misread it?
2. convert_to_real claims to be disabled in comments, but it's not?
3. convert_to_real has some typos for the supposedly long double
BUILT_IN_ROUND, BUILT_IN_TRUNC and BUILT_IN_NEARBYINT.
4. Can't we handle BUILT_IN_RINT the same way we do the others?
Thanks,
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu