This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/14940] PCH largefile test fails on various platforms
- From: "ian at wasabisystems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2004 14:43:34 -0000
- Subject: [Bug pch/14940] PCH largefile test fails on various platforms
- References: <20040413135721.14940.ian@wasabisystems.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ian at wasabisystems dot com 2004-07-17 14:43 -------
I should add that always using MAP_FIXED will cause the new mmap to clobber any
existing memory maps, which will lead to silent failure if the GC code (or the
library malloc code) happens to have mapped any portion of that memory space.
So using MAP_FIXED does not work in general. For an example of how it can be
used on some systems, see gcc/config/host-solaris.c, which uses mincore() to
explicitly check whether anything else is mapped in that address space. But
note that that code does not work on, e.g., GNU/Linux, because mincore() does
not work as expected--it does not detect anonymous maps.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940