[PATCH] Fix Fortran FP classification/compare builtin folding

Tobias Burnus tobias.burnus@physik.fu-berlin.de
Wed Oct 28 14:45:00 GMT 2015


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.



More information about the Fortran mailing list