diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2025-01-27 12:39:00 -0500 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2025-01-27 12:39:00 -0500 |
commit | 9d450dee7112635a541c5a34268d54f63da48f71 (patch) | |
tree | 41a677c3600f0fda4355864d182d0a56e0d5c46b /gcc/fortran/frontend-passes.cc | |
parent | d31667e8488ad2b14ae4ee6d128ae0015381fbef (diff) | |
download | gcc-9d450dee7112635a541c5a34268d54f63da48f71.zip gcc-9d450dee7112635a541c5a34268d54f63da48f71.tar.gz gcc-9d450dee7112635a541c5a34268d54f63da48f71.tar.bz2 |
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 <danglin@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.
Diffstat (limited to 'gcc/fortran/frontend-passes.cc')
0 files changed, 0 insertions, 0 deletions