Landing: 8f0912e5a88a

Project / Subsystem

gcc / gcc

Date

2026-09-05

Author

Iain Sandoe

Commit

8f0912e5a88a3470145725e7b00a65770658f335

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
8f0912e5a88a3470145725e7b00a65770658f335
source_type
github
headline
testsuite: Handle '__weak' predefinition on Darwin.
tldr
Undefines '__weak' in a Darwin test case to prevent conflicts with the compiler's predefined macros.
author
Iain Sandoe
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • testsuite
  • • Darwin
  • • predefined macros
discussion_id_link
—
bugzilla_pr
—
date
2026-09-05T00:00:00.000Z

This commit addresses a conflict in a Darwin test case (attr-weakref-2_0.c) where the predefined macro __weak clashes with the test’s usage. The change undefines __weak specifically for this test to ensure correct compilation and execution.