Landing: 6ab6c84821e8

Project / Subsystem

gcc / gcc/testsuite

Date

2026-06-11

Author

Iain Sandoe

Commit

6ab6c84821e80c0d17e77f3a67a3a931b6fcde9d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/testsuite
patch_id
commit_hash
6ab6c84821e80c0d17e77f3a67a3a931b6fcde9d
source_type
github
headline
Test suite now handles emulated Thread-Local Storage for C++ attribute tests.
tldr
The GCC testsuite now correctly accounts for differences in output when testing C++ thread-local storage attributes with emulated TLS.
author
Iain Sandoe
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • tls
  • c++
  • portability
discussion_id_link
bugzilla_pr
date
2026-06-11T00:00:00.000Z

This commit updates GCC’s testsuite to include specific match criteria for emulated Thread-Local Storage (TLS) in C and C++ attribute tests. Previously, tests for TLS attributes might have failed when using emulated TLS because the generated output differs from that of native TLS implementations. By adding these adjustments to tls-attr-common.c, tls-attr-le-pic.c, and tls-attr-le-pie.c, the test suite now provides more accurate results across various TLS configurations, improving the reliability of attribute testing.