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: [PATCH][RFC] Enable LFS support for libcpp and gcc


On Fri, 13 Feb 2009, Paolo Bonzini wrote:

> 
> > Oh.  I wonder if we can rely on that being available?  It's at least
> > not used in gcc anywhere.  I see, in 2003:
> 
> From gnulib:
> 
> <<<
> This function is missing on some platforms:  IRIX 5.3, OSF/1 4.0,
> Solaris 2.5.1, mingw.  [My note: Solaris 2.5.1 is from 1996 and the
> other two are older; mingw is a problem].
> 
> The declaration of @code{fseeko} in @code{<stdio.h>} is not enabled by
> default on some platforms: glibc 2.3.6.  [Not a problem?  Suggests
> configury can work around it?]
> 
> This function fails on seekable stdin, stdout, and stderr: cygwin <= 1.5.24.
> >>>
> 
> 
> I suppose that this should work in configure.ac for the sake of mingw:
> 
> AC_CHECK_FUNC([fseeko], [],
>   [AC_DEFINE([fseeko], [fseek],
>     [Define to fseek if fseeko is not available on this platform.])
>   AC_DEFINE([ftello], [ftell],
>     [Define to ftell if ftello is not available on this platform.])])

Yeah.  OTOH such large PCHs won't work on a 32bit platform anyway, so
I see this as a sort-of academic problem ;)

Richard.


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