diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2016-12-21 09:35:57 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2016-12-21 09:35:57 +0000 |
commit | f7db9ebf2b793ee115d572267b8c97362f43575c (patch) | |
tree | f026989ec1d1cc3ed32ddcbad5415fd04d399551 /libgfortran/io/intrinsics.c | |
parent | 84ab8b8ad51a339d05a65759a4f603b01f0aa80a (diff) | |
download | gcc-f7db9ebf2b793ee115d572267b8c97362f43575c.zip gcc-f7db9ebf2b793ee115d572267b8c97362f43575c.tar.gz gcc-f7db9ebf2b793ee115d572267b8c97362f43575c.tar.bz2 |
iresolve.c (gfc_resolve_ftell): Call "ftell" instead of "ftell2".
* iresolve.c (gfc_resolve_ftell): Call "ftell" instead of "ftell2".
* gfortran.map: Remove _gfortran_ftell2.
* io/intrinsics.c (ftell): Remove.
(ftell2): Rename to ftell.
From-SVN: r243841
Diffstat (limited to 'libgfortran/io/intrinsics.c')
-rw-r--r-- | libgfortran/io/intrinsics.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/libgfortran/io/intrinsics.c b/libgfortran/io/intrinsics.c index 5bf08f3..ad8e28b 100644 --- a/libgfortran/io/intrinsics.c +++ b/libgfortran/io/intrinsics.c @@ -272,29 +272,11 @@ gf_ftell (int unit) } -/* Here is the ftell function with an incorrect return type; retained - due to ABI compatibility. */ - -extern size_t PREFIX(ftell) (int *); +extern GFC_IO_INT PREFIX(ftell) (int *); export_proto_np(PREFIX(ftell)); -size_t -PREFIX(ftell) (int * unit) -{ - return gf_ftell (*unit); -} - - -/* Here is the ftell function with the correct return type, ensuring - that large files can be supported as long as the target supports - large integers; as of 4.8 the FTELL intrinsic function will call - this one instead of the old ftell above. */ - -extern GFC_IO_INT PREFIX(ftell2) (int *); -export_proto_np(PREFIX(ftell2)); - GFC_IO_INT -PREFIX(ftell2) (int * unit) +PREFIX(ftell) (int * unit) { return gf_ftell (*unit); } |