Fix libgomp Fortran tests

Jerry DeLisle jvdelisle@verizon.net
Fri Sep 8 04:40:00 GMT 2006


Andrew Pinski wrote:
> There was some previous discussion about this problem in:
> http://gcc.gnu.org/ml/fortran/2003-12/msg00095.html
> 
> I forgot what the outcome of the discussion was.
> 
> Thanks,
> Andrew Pinski
> 
> 
Andrew,

This is a very interesting thread to read and brings up some old arguments.  I 
would like to put in my two cents worth.  The thread discusses consequences of 
the ABS() intrinsic.

If gfortran were to support asymmetrical integers then the ABS intrinsic should 
throw a runtime error on ABS(most_negative_value).  It does not follow common 
sense or good reasoning to have an incorrect result and to do so knowingly.

To avoid the runtime penalty in computations of checking for that absurd case, I 
think its better to just not allow it and stick with the standard which defines 
symmetrical integers.

One reason for standards and standards committees is to hash out all these things.

Jerry



More information about the Fortran mailing list