gccrs: Correct the naming of atomic store & load intrinsics
Restores older Rust naming conventions for atomic load/store intrinsics in gccrs.
This commit corrects the naming of atomic store and load intrinsics within the gccrs compiler to align with older Rust versions (specifically 1.49.0). Previously, these intrinsics were using naming conventions from Rust 1.64.0, which could lead to compatibility issues. The patch adds back the required 1.49.0 namings for these critical intrinsics.
In Details
In gccrs, this commit updates rust-intrinsic-values.h and rust-compile-intrinsic.cc to re-introduce the Rust 1.49.0-style names for atomic load and store intrinsics (e.g., atomic_load, atomic_store, atomic_load_acq, atomic_store_rel). This is necessary because the compiler was previously using newer, post-1.64.0 names, creating a naming mismatch for older Rust language constructs or compatibility requirements.
- intrinsics
- Special functions or instructions that the compiler can recognize and translate directly into efficient machine code. They often provide low-level hardware access, such as atomic operations.
- atomic operations
- Operations (like load, store, or read-modify-write) on memory that are guaranteed to execute indivisibly. They are crucial for correct multi-threaded programming.
- gccrs
- The Rust frontend for the GCC compiler, aiming to provide a robust and compliant Rust compilation experience within the GCC ecosystem.