Landing: dc51d5a7de04

Project / Subsystem

gcc / libgomp

Date

2026-05-16

Author

Rainer Orth

Commit

dc51d5a7de04e39966bad94a984e58d06d1f21eb

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libgomp
patch_id
commit_hash
dc51d5a7de04e39966bad94a984e58d06d1f21eb
source_type
github
headline
libgomp: Fix compilation on Darwin by checking GOMP_DEFAULT_STACKSIZE.
tldr
Fixes a Darwin-specific libgomp compilation error due to a constant logical operand with GOMP_DEFAULT_STACKSIZE.
author
Rainer Orth
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libgomp
  • openmp
  • darwin
  • compilation
discussion_id_link
bugzilla_pr
date
2026-05-16T00:00:00.000Z

This commit fixes a compilation error in libgomp on Darwin. The error was triggered by using a logical OR (||) with a constant operand (GOMP_DEFAULT_STACKSIZE) in the initialize_env function, which is flagged as a warning treated as error on Darwin. The fix involves checking if GOMP_DEFAULT_STACKSIZE is non-zero before performing the logical OR.