This is the mail archive of the gcc@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]

Re: compilation for files > 2Gb


I wrote:
> > I agree, there are certainly more pressing problems.  However, if we
> > aren't going to support it, ideally GCC should produce a message
> > describing the problem ("File foobar.h is too large to be mapped into
> > memory" or some such) rather than just fail mysteriously.
> 
> We do:
> 
>       if (inc->st.st_size > INTTYPE_MAXIMUM (ssize_t))
> 	{
> 	  cpp_error (pfile, "%s is too large", inc->name);
> 	  goto fail;
> 	}
>       size = inc->st.st_size;
> 
> Perhaps the message could be made clearer.

That's good enough as far as I'm concerned.


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