diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-01-12 16:44:09 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-01-12 16:44:09 +0000 |
commit | 70f8b89fd9ff69e2b399042d5b15cd367c970c67 (patch) | |
tree | 3fd25aabc71abf89cf5a256cba6ac1a97c8ccc06 /gcc/ggc-common.c | |
parent | ae6ccbe39130d9db4d9676d78ec65f01dd94fd52 (diff) | |
download | gcc-70f8b89fd9ff69e2b399042d5b15cd367c970c67.zip gcc-70f8b89fd9ff69e2b399042d5b15cd367c970c67.tar.gz gcc-70f8b89fd9ff69e2b399042d5b15cd367c970c67.tar.bz2 |
c-pch.c (asm_file_startpos): Change to `long'.
* c-pch.c (asm_file_startpos): Change to `long'.
(pch_init): Use ftell, not ftello.
(c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
Use `long' instead of `off_t'.
(c_common_read_pch): Likewise.
* ggc-common.c (gt_pch_save): Use long/ftell instead of
off_t/ftello.
From-SVN: r61233
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index ed6d3b4..e9c2f02 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -495,9 +495,9 @@ gt_pch_save (f) /* Pad the PCH file so that the mmaped area starts on a page boundary. */ { - off_t o; - o = ftello (state.f) + sizeof (mmi); - if (o == (off_t) -1) + long o; + o = ftell (state.f) + sizeof (mmi); + if (o == -1) fatal_io_error ("can't get position in PCH file"); mmi.offset = page_size - o % page_size; if (mmi.offset == page_size) |