This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fortran] PR22375: Promote arguments to __builtin_expect
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Mar 2006 18:41:44 -0800
- Subject: Re: [Fortran] PR22375: Promote arguments to __builtin_expect
- References: <Pine.LNX.4.44.0603291805490.3868-100000@www.eyesopen.com>
On Wed, Mar 29, 2006 at 06:11:52PM -0700, Roger Sayle wrote:
>
> The following patch resolves PR middle-end/22375 which is a type
> mismatch problem with Andrew Pinski's strict type checking patches.
> The problem is that the gfortran front-ends is generating calls
> to the __builtin_expect instrinsic in gfc_trans_runtime_check
> without correctly promoting the function arguments to the expected
> type, or casting the result back to a boolean_type_node. This is
> fixed by the patch below.
>
> The following patch has been tested on x86_64-unknown-linux-gnu
> with a full "make bootstrap", including fortran, and regression
> tested with a top-level "make -k check" with no new failures.
>
> Ok for mainline?
>
OK.
I plan to review your other patchs this weekend if no one
beats me to the review.
--
Steve