summaryrefslogtreecommitdiff
path: root/gcc/ggc-common.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-12 16:44:09 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-12 16:44:09 +0000
commit04ea944577d1b7de61cd3f3dcdfa1cdfec398916 (patch)
tree3fd25aabc71abf89cf5a256cba6ac1a97c8ccc06 /gcc/ggc-common.c
parent2c982c2bc2480fe46ad4ce7d8f8078189f6bcc3b (diff)
downloadgcc-04ea944577d1b7de61cd3f3dcdfa1cdfec398916.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61233 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r--gcc/ggc-common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
index ed6d3b45a85..e9c2f020668 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)