This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] preliminary fpos work
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, pcarlini at unitus dot it, Richard dot Earnshaw at arm dot com
- Date: Fri, 11 Jul 2003 12:27:19 +0100
- Subject: Re: [v3] preliminary fpos work
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
>
> Something fun for a Friday....
>
> This is an attempt to use fpos_t file positioning for C++ io. This isn't
> completely done, but it works and is necessary for further filepos work.
>
sadly, not. My netwinder (arm-linux) won't bootstrap after this change.
> 1) Andreas and Paolo issues with 64 bit io, consultation with Ulrich
> indicates that the best solution would probably be a
> -D_FILE_OFFSET_BITS=64 define a la USE_GNU. This can be added later,
> hopefully after the "C" compatibility work is finished, to a libstdc++
> include, or not later, as another macro. I'm punting on this for now.
>
> 2) now a real filebuf::seekpos can happen. I leave that for Paolo!
>
Old gnu-linux systems (well, old glibc versions) define fpos_t simply as
an __off_t. So when configure selects gnu-linux/fpos.h all hell breaks
loose.
R.