https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116524
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by John David Anglin <dang...@gcc.gnu.org>: https://gcc.gnu.org/g:9d450dee7112635a541c5a34268d54f63da48f71 commit r15-7233-g9d450dee7112635a541c5a34268d54f63da48f71 Author: John David Anglin <dang...@gcc.gnu.org> Date: Mon Jan 27 12:39:00 2025 -0500 c++: Use mapped reads and writes when munmap and msync are available Module support is broken when MAPPED_READING and MAPPED_WRITING are defined to 0. This causes internal compiler errors in the permissive-error-1.C and permissive-error-2.C tests. HP-UX 11.11 doesn't define _POSIX_MAPPED_FILES but it does have munmap and msync. Testing indicates support is sufficient for c++ modules, so use checks for these functions instead of _POSIX_MAPPED_FILES check. 2025-01-27 John David Anglin <dang...@gcc.gnu.org> gcc/ChangeLog: PR c++/116524 * configure.ac: Check for munmap and msync. * configure: Regenerate. * config.in: Regenerate. gcc/cp/ChangeLog: * module.cc: Test HAVE_MUNMAP and HAVE_MSYNC instead of _POSIX_MAPPED_FILES > 0.