Landing: 6c3b1e2e972d

Project / Subsystem

gcc / gcc/testsuite

Date

2026-06-01

Author

Iain Sandoe

Commit

6c3b1e2e972d2fb331b4ea37080c5bf5e4c1d7ae

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/testsuite
patch_id
commit_hash
6c3b1e2e972d2fb331b4ea37080c5bf5e4c1d7ae
source_type
github
headline
Testsuite: Removes duplicate Asan and pthread libraries for Darwin
tldr
GCC's testsuite for C++ on Darwin no longer includes redundant Asan and pthread libraries, avoiding linker complaints.
author
Iain Sandoe
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • darwin
  • linker
  • asan
  • c++
discussion_id_link
bugzilla_pr
date
2026-06-01T00:00:00.000Z

This commit updates the GCC C++ testsuite for Darwin to prevent duplicate linking of libraries. On newer versions of Darwin, the linker reports errors when asan (AddressSanitizer) and pthread libraries are included redundantly. The asan library is already provided by the compiler’s specifications, and pthread is part of libSystem, so the test configuration has been adjusted to omit these explicit links, resolving linker complaints and ensuring cleaner test execution.