This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR52413 - Incorrect behavior of FRACTION when applied to a constant


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]