[fortran patch] Don't use TREE_LISTs for storing arguments to intrinsic functions

FX Coudert fxcoudert@gmail.com
Tue May 29 05:59:00 GMT 2007


> Do you happen to have a testcase that highlighted this problem?

Not that I know of. I think it was generating code that is valid, but  
inefficient. Instead of translating MAX(A,B) into
     if (A > B)
       MAX = A;
     else
       MAX = B;
your patch was generating
     if (A > A)
       MAX = A;
     else
       MAX = A;
     if (B > MAX)
       MAX = B;

This yields the right result, but is inefficient. Thus, I don't have  
a testcase.

FX



More information about the Fortran mailing list