This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix Fortran FP classification/compare builtin folding
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: Richard Biener <rguentheratsusedotde at physik dot fu-berlin dot de>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Wed, 28 Oct 2015 15:45:02 +0100
- Subject: Re: [PATCH] Fix Fortran FP classification/compare builtin folding
- Authentication-results: sourceware.org; auth=none
Richard Biener wrote:
> The following fixes missed constant folding of __builtin_signbit and
> friends. The first issue is that the calls were never detected as
> having compatible arguments because the FE builds the function
> types in a wrong way (they should be variadic but have 'void',
> even multiple!, arguments).
[...]
> Bootstrap / regtest pending on x86_64-unknown-linux-gnu.
> Are the fortran parts ok?
OK. Thanks for the patch.
Tobias
> 2015-10-28 Richard Biener <rguenther@suse.de>
>
> * gimple-match-head.c (gimple_simplify): Remove premature checking
> of builtin_decl_implicit of function calls we simplify.
>
> fortran/
> * f95-lang.c: Properly build variadic types for classification
> and comparison builtins.