Landing: f5e868161a06

Project / Subsystem

gcc / rs6000

Date

2026-06-09

Author

Jeevitha

Commit

f5e868161a067809c80517de5f4e836253bbd1d9

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
rs6000
patch_id
commit_hash
f5e868161a067809c80517de5f4e836253bbd1d9
source_type
github
headline
Rs6000: Add future ISA compare and swap equal AMO operations
tldr
GCC now supports new PowerPC atomic memory operations for compare-and-swap-equal, anticipating future processor features.
author
Jeevitha
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • powerpc
  • atomic-operations
  • isa
  • future-isa
discussion_id_link
bugzilla_pr
date
2026-06-09T00:00:00.000Z

This commit introduces support for upcoming PowerPC compare-and-swap-equal atomic memory operations (AMOs). It adds new enumerations and helper functions, guarded by the _ARCH_FUTURE macro, to enable these operations in rs6000 configurations. For targets not designated as _ARCH_FUTURE, diagnostic stubs will provide compile-time errors, ensuring forward compatibility while preventing accidental use on older hardware.