libstdc++: Use always_inline for <atomic> memory_order parameters
Adds always_inline to std::atomic functions to ensure memory_order is a compile-time constant, improving optimization.
std::atomic member functions in
In Details
This change affects the inlining of std::atomic operations within libstdc++. By marking functions like load, store, and exchange with always_inline, the compiler is encouraged to inline them even at optimization levels like -Os. This is crucial for propagating std::memory_order values, which are often compile-time constants, to the underlying atomic builtins. Without inlining, the memory_order might be promoted to a runtime value, preventing the selection of optimal hardware instructions and potentially degrading to seq_cst semantics.