This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR52413 - Incorrect behavior of FRACTION when applied to a constant
- From: Tobias Burnus <burnus at net-b dot de>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: fortran at gcc dot gnu dot org, fxcoudert at gcc dot gnu dot org, sgk at troutmask dot apl dot washington dot edu, gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Jun 2013 10:49:12 +0200
- Subject: Re: [Patch, Fortran] PR52413 - Incorrect behavior of FRACTION when applied to a constant
- References: <20130623214358 dot 1338A3BE1B at mailhost dot lps dot ens dot fr>
Dominique Dhumieres wrote:
This patch packages the Steven G. Kargl's patch when MPFR 3.1.0 or newer
is available and fixes the original code for older versions using the
FX Coudert's machinery (see PR for details).
Tested on powerpc-apple-darwin9 and x86_64-apple-darwin10 without
regression.
OK for the trunk? If yes, could someone commit it for me?
OK. Thanks for the patches Steve and FX - and to Dominique for combining
the two and creating the test case.
I have committed it as Rev. 200361.
2013-06-23 Steven G. Kargl <sgk@troutmask.apl.washington.edu>
Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Dominique d'Humieres <dominiq@lps.ens.fr>
PR fortran/52413
* simplify.c: Fix the sign of negative values in gfc_simplify_fraction.
The syntax is to place the function name in parentheses, i.e.
* simplify.c (gfc_simplify_fraction): Fix the sign of negative values.
Tobias