This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: mmap checks by blacklist, not fragile AC_TRY_RUN test
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org,Greg Schafer <gschafer at zip dot com dot au>
- Date: Mon, 2 Jun 2003 17:49:13 +0200
- Subject: Re: mmap checks by blacklist, not fragile AC_TRY_RUN test
- References: <877k85focv.fsf@egil.codesourcery.com> <87d6hxdr5c.fsf@egil.codesourcery.com>
> I am going to check in the change to ggc-page.c, which is independent,
> but wait another 24 hours for more feedback on the configure changes.
> This diff includes only the configure changes.
Bootstrapped on sparc-sun-solaris2.7 and sparc-sun-solaris2.8. It correctly
detected that Solaris 7 doesn't have MAP_ANON:
/* Define if mmap can get us zeroed pages from /dev/zero. */
#define HAVE_MMAP_DEV_ZERO 1
/* Define if mmap can get us zeroed pages using MAP_ANON(YMOUS). */
/* #undef HAVE_MMAP_ANON */
/* Define if read-only mmap of a plain file works. */
#define HAVE_MMAP_FILE 1
and that Solaris 8 supports the full range of features:
/* Define if mmap can get us zeroed pages from /dev/zero. */
#define HAVE_MMAP_DEV_ZERO 1
/* Define if mmap can get us zeroed pages using MAP_ANON(YMOUS). */
#define HAVE_MMAP_ANON 1
/* Define if read-only mmap of a plain file works. */
#define HAVE_MMAP_FILE 1
That's nice because it will allow me to resurrect my patch aimed at enabling
PCH support on Solaris (at last!).
--
Eric Botcazou