Re: [Patch, Fortran] Add runtime_error function to libgfortran/caf/mpi.c

2011-07-09 Thread jvdelisle

On Sat, Jul 9, 2011 at 5:02 AM, Tobias Burnus wrote:


Tobias Burnus wrote:
This patch adds a run-time error function to mpi.c, which gives a 
proper error message including the image number. Additionally, it 
allows to clean up the error handling, avoiding the duplicated 
declaration of strings.


I have not touched the SYNC functions


Well, I did now. The attached patch combines my runtime_error function 
patch with Daniel's sync patch.


OK?


Tobias


Consider renaming it to mpi_runtime_error just to aid in clarity since 
we have runtime errors of other sorts elsewhere.  This is just a minor 
suggestion and I leave it to you.


Ok for trunk.

Jerry


Re: [patch, libgfortran] PR48906 Wrong rounding results with -m32

2011-06-11 Thread jvdelisle

On Sat, Jun 11, 2011 at 8:56 AM, Thomas Henlich wrote:

On Sat, Jun 11, 2011 at 14:41, jerry DeLisle jvdeli...@charter.net 
wrote:
This was established as solution to PR48488 where we had two choices 
for
selecting the significant digits. Nine significant digits was 
established as
a requirement to guarantee round trip in all cases. The 
char4_iunit_1.f03
test case was revised because after we corrected the formatting in 
PR48906,
it started to fail and I observed the test case was looking for the 
wrong

number of significant digits.

Based on this, I would suggest we leave it as I have it, which is 
correct.


I'm afraid it's not.

1.23450002E-06 has nine significant digits. That's how it should be.

We don't want 1PG16.9E2 editing for list-directed and G0,
but G16.9E2 for the F editing range and 1PE16.8E2 editing for the E 
range.


This is to make sure the result always has nine significant digits,
whether in the F or E range.



My bad, I counted across wrong.  Working on it.  Coffee deficiency in 
the early morning.


;)

Jerry

Jerry