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]
Other format: [Raw text]

Re: GCC 4.3.0 compilation error


Jim Wilson wrote:
Wirawan Purwanto wrote:
I tried to compile GCC 4.3.0 on a Red Hat Linux 9.0 box, it stopped at stage 1:

Compiling new gcc versions on old linux versions may not always work, and is unlikely to be fixed. You are probably on your own here if you run into a non-trivial problem.

However, I think we should accept patches for such problems, if they're otherwise good. (I'm not suggesting that you, Jim, are saying otherwise; I'm just expandng.)


In this case, for example, the fix might be to add something like:

#ifndef SSIZE_MAX
#define SSIZE_MAX LONG_MAX
#endif

to host-linux.c. Or some autoconf check that determines whether SSIZE_MAX is available and defines it if it is not, based on the size of size_t. Or something. (I don't know Linux well enough to how consistent these things are across targets.)

Thanks,

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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