Skip to content

transpile: Consider volatile reads a side effect - #1978

Merged
ahomescu merged 4 commits into
immunant:masterfrom
Rua:volatile-read-side-effect
Aug 27, 2026
Merged

transpile: Consider volatile reads a side effect#1978
ahomescu merged 4 commits into
immunant:masterfrom
Rua:volatile-read-side-effect

Conversation

@Rua

@Rua Rua commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Fixes the issue noted in #1975 (comment), that volatile reads with unused results are omitted when they shouldn't be.

@Rua
Rua force-pushed the volatile-read-side-effect branch 4 times, most recently from d26719b to 8cd218b Compare August 20, 2026 14:53
@Rua
Rua marked this pull request as ready for review August 20, 2026 14:58
@Rua
Rua force-pushed the volatile-read-side-effect branch 3 times, most recently from 62b90e1 to 476a77c Compare August 23, 2026 13:09
@fw-immunant
fw-immunant requested a review from ahomescu August 25, 2026 14:36
Comment thread c2rust-transpile/tests/snapshots/volatile.c
@Rua
Rua force-pushed the volatile-read-side-effect branch from 476a77c to fe9ed9f Compare August 26, 2026 08:50
@ahomescu
ahomescu merged commit da85214 into immunant:master Aug 27, 2026
11 checks passed
@Rua
Rua deleted the volatile-read-side-effect branch August 27, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants