I followed up with the following patch, committed as revision 243841, removing the old _gfortran_ftell and renaming the modern _gfortran_ftell2. It was bootstrapped and regtested on x86_64-apple-darwin16.3.0.
This is the last item from https://gcc.gnu.org/wiki/LibgfortranAbiCleanup <https://gcc.gnu.org/wiki/LibgfortranAbiCleanup> which I feel comfortable addressing. FX
ftell.ChangeLog
Description: Binary data
ftell.diff
Description: Binary data