RFA: Skip largefile PCH test on Solaris 10 x86

Ian Lance Taylor iant@google.com
Tue May 8 07:03:00 GMT 2007


Mark Mitchell <mark@codesourcery.com> writes:

> As detailed in PR 14940, PCH on Solaris 10 x86 doesn't work very well:
> there doesn't seem to be any way to get consistent addresses from
> mmap.  Small PCH tests work, but big ones don't.  In practice, PCH is
> probably not useful on this platform, but I'm not sure if we have a
> good way to totally disable it.

The way to fix this is to add a HOST_HOOKS_GT_PCH_GET_ADDRESS to
host-solaris.c.  That hook should try to allocate the space in some
address area that is normally free on Solaris.  See the use of
TRY_EMPTY_VM_SPACE in host-linux.c.

Ian



More information about the Gcc-patches mailing list