From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4158 invoked by alias); 3 Apr 2003 03:17:44 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 4151 invoked from network); 3 Apr 2003 03:17:43 -0000 Received: from unknown (HELO desire.geoffk.org) (12.235.88.42) by sources.redhat.com with SMTP; 3 Apr 2003 03:17:43 -0000 Received: (from geoffk@localhost) by desire.geoffk.org (8.11.6/8.11.6) id h333HFB03519; Wed, 2 Apr 2003 19:17:15 -0800 Date: Thu, 03 Apr 2003 06:05:00 -0000 From: Geoff Keating Message-Id: <200304030317.h333HFB03519@desire.geoffk.org> To: ebotcazou@libertysurf.fr CC: gcc@gcc.gnu.org In-reply-to: <200304021934.12278.ebotcazou@libertysurf.fr> (message from Eric Botcazou on Wed, 2 Apr 2003 19:39:48 +0200) Subject: Re: PCH support on Solaris References: <200304021934.12278.ebotcazou@libertysurf.fr> X-SW-Source: 2003-04/txt/msg00116.txt.bz2 > From: Eric Botcazou > Date: Wed, 2 Apr 2003 19:39:48 +0200 > In other words, Solaris appears to map the whole file, whatever offset you > specify in the call to mmap, so that the address returned is > > addr = mmi.preferred_base + mmi.offset > > > The reporter of PR other/9830 proposes to force the address by passing > MAP_FIXED to mmap; this works (all pch tests of the testsuite pass) but, if > my interpretation is correct, this could fail if the pages before the forced > address are for some reason unmappable. I think we discussed this more in the PR and the suggestion was to use MAP_FIXED but to check that the area was safe to map into. There's sample code in the PR, I think, but it really needs someone with a Solaris machine to do a proper patch using host-hooks. -- - Geoffrey Keating