Landing: 87c14b9896b5

Project / Subsystem

gcc / libstdc++

Date

2026-09-25

Author

Jonathan Wakely

Commit

87c14b9896b54696fbec7d8824eee135baca1f4d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
87c14b9896b54696fbec7d8824eee135baca1f4d
source_type
github
headline
libstdc++: Remove preprocessor checks for EPERM
tldr
Removes redundant preprocessor checks for EPERM in Windows and MinGW error handling headers.
author
Jonathan Wakely
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • libstdc++
  • • windows
  • • error handling
discussion_id_link
—
bugzilla_pr
—
date
2026-09-25T00:00:00.000Z

This commit simplifies libstdc++‘s error handling by removing unnecessary preprocessor checks for the EPERM macro. These checks were present in headers for MinGW and MinGW-w64 targets, but EPERM is consistently defined across Windows and POSIX-like systems. By removing these checks, the code now unconditionally uses EPERM, simplifying the headers and aligning with existing code that assumes its presence.