This is the mail archive of the gcc-patches@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: [RFC PATCH]: are we using FIX_*_EXPR ?


On Friday 30 April 2004 14:38, Kaveh R. Ghazi wrote:
> Some questions:
>
> 1.  I noticed in tree.def we have FIX_TRUNC_EXPR, FIX_CEIL_EXPR,
>     FIX_FLOOR_EXPR and FIX_ROUND_EXPR, but we don't seem to actually
>     build them anywhere.  Are they used at all?

gfortran would use them if they were implemented. We currently fake all but 
FIX_TRUNC_EXPR in the frontend. See build_fix_expr in  
gfortran/trans-intrinsic.c.

> 2.  Second, in looking at where we use them I noticed we usually
>     either handle all four or we handle just FIX_TRUNC_EXPR.  But in
>     two cases where we handled more than one, we were missing
>     FIX_ROUND_EXPR.

RTL expansion is only implemented for FIX_TRUNC_EXPR. We abort in expr.c for 
the other three.

Paul


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