Skip to content

[forge] Test https://forge.sourceware.org/gcc/gcc-TEST/pulls/174#4584

Open
CohenArthur wants to merge 3 commits into
Rust-GCC:masterfrom
CohenArthur:forge/174
Open

[forge] Test https://forge.sourceware.org/gcc/gcc-TEST/pulls/174#4584
CohenArthur wants to merge 3 commits into
Rust-GCC:masterfrom
CohenArthur:forge/174

Conversation

@CohenArthur

Copy link
Copy Markdown
Member

Elle Rhumsaa added 3 commits June 10, 2026 16:38
Adds the `atomic_exchange` intrinsics for every memory ordering.

gcc/
	* rust/backend/rust-compile-intrinsic.cc: compile impl
	* rust/backend/rust-intrinsic-handlers.h: handler decls
	* rust/backend/rust-intrinsic-handlers.cc: handler impls
	* rust/util/rust-intrinsic-values.h: value defs

gcc/teststuite/
	* rust/execute/torture/atomic_exchange.rs: basic tests
Uses the `memmodel` enum variants for `atomic_*` intrinsic functions.

gcc/
	* rust/backend/rust-compile-intrinsic.cc: use memmodel
	* rust/backend/rust-intrinsic-handlers.cc: use memmodel
	* rust/backend/rust-intrinsic-handlers.h: use memmodel
Adds a `flags` argument to the `compile_intrinsic_function` argument to
avoid modifying the `tree` for the function declaration after it has
been created.

gcc/
	* rust/backend/rust-intrinsic-handlers.cc: add flags to the
	`compile_intrinsic_function` declaration, and calls to the
	function
	* rust/backend/rust-backend.h: add function flag definitions
	* rust/rust-gcc.cc: add macro calls based on flags
@CohenArthur CohenArthur added the forge-testing Testing pull-requests from the sourceware Forge while we have no CI there label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forge-testing Testing pull-requests from the sourceware Forge while we have no CI there

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant