This is the mail archive of the gcc-patches@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: [committed] Fix PR pch/14940 on hppa hpux and linux


On Mon, Nov 29, 2004 at 10:25:25PM -0500, John David Anglin wrote:
> The following change fixes the pch failures including largefile.c
> under hppa hpux11.11 and hppa-linux.
> 
> There doesn't seem to be any way to map to a consistent start address
> on hppa-linux using MAP_PRIVATE.  According the the PA-RISC kernel
> team, this is due to the strict aliasing requirements of the PA-RISC
> hardware.  Thus, I adopted a brute force fix of doing an anonymous
> MAP_PRIVATE and copying the data to this mapping.  This still requires
> picking a suitable spot.  It's also necessary to pick a good spot
> on hppa64-hpux as default kernel placement stills fails largefile.c.
> It allocates from top down and the default placement is too high for
> some unknown reason in the largefile.c test.

You can't even map file data at an arbitrary offset using MAP_FIXED, I
guess?

-- 
Daniel Jacobowitz


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