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: mmap checks by blacklist, not fragile AC_TRY_RUN test


> 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


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