This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Skip largefile PCH test on Solaris 10 x86
Ian Lance Taylor wrote:
> 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.
Ah! Thanks for the tip. I've put that in the PR. I don't know if I'll
get a chance to implement it, but, hopefully, this will help whoever
gets there first.
Thanks!
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713