This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] preliminary fpos work


> 
> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]