This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't fold condition (again) in gfc_trans_runtime_check
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Sun, 15 Jan 2006 14:59:17 -0800
- Subject: Re: [PATCH] Don't fold condition (again) in gfc_trans_runtime_check
- References: <Pine.LNX.4.63.0601131530140.6210@t148.fhfr.qr>
On Fri, Jan 13, 2006 at 03:32:28PM +0100, Richard Guenther wrote:
>
> Using grep is immediately followed by pressure to do some cleanups
> again... As in, don't use fold () because it's not recursive, instead
> use fold_buildN where appropriate.
>
> Gone over all users of gfc_trans_runtime_check and verified we used
> fold_buildN for the condition we pass to gfc_trans_runtime_check. Or
> fixed it with this patch.
>
> Ok for mainline?
>
> Thanks,
> Richard.
>
>
> 2006-01-13 Richard Guenther <rguenther@suse.de>
>
> * trans-expr.c (gfc_conv_function_call): Use fold_build2.
> * trans-stmt.c (gfc_trans_goto): Likewise. Use build_int_cst.
> * trans.c (gfc_trans_runtime_check): Don't fold the condition
> again.
>
OK.
--
Steve