inlined maxval

Jerry DeLisle jvdelisle@verizon.net
Wed Oct 28 12:05:00 GMT 2009


Paul Keir wrote:
> Hi,
>
> There are three versions of maxval in gfortran (maxval, mmaxval, and
> smaxval). I wasn't
> sure when each would be applied so I tested minimal programs containing
> only a single call
> to maxval using "nm"; as in "nm a.out | grep maxval".
>
> This worked fine, but gave me another question. The simplest call to
> maxval (example below),
> once compiled, gives an empty result using the "nm" method. Am I right
> to think that the
> function call is inlined?
>   
If you look at the output from -fdump-tree-original, you will see the 
intermediate code being generated.  It has no calls to the function.

Jerry



More information about the Fortran mailing list