Landing: 940db23b6b84

Project / Subsystem

gcc / c++

Date

2026-07-10

Author

Rainer Orth

Commit

940db23b6b8461a97eead393a1adf85ef0905862

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
940db23b6b8461a97eead393a1adf85ef0905862
source_type
github
headline
C++: modules: Allow for EOPNOTSUPP error from posix_fallocate
tldr
Fixes C++ module compilation SEGV on NetBSD by handling EOPNOTSUPP from posix_fallocate.
author
Rainer Orth
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • modules
  • netbsd
  • error handling
discussion_id_link
bugzilla_pr
date
2026-07-10T00:00:00.000Z

This commit resolves a segmentation fault occurring during C++ module compilation on NetBSD when using a ZFS build directory. It addresses an issue where posix_fallocate returns EOPNOTSUPP, an error code not previously handled. The change updates elf_out::create_mapping to accommodate this error, preventing the crash and ensuring module compilation proceeds correctly.