This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH]: are we using FIX_*_EXPR ?
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 30 Apr 2004 14:54:41 +0100
- Subject: Re: [RFC PATCH]: are we using FIX_*_EXPR ?
- Organization: CodeSourcery
- References: <200404301338.i3UDcs3Y003792@caip.rutgers.edu>
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