Skip to content

Conversation

@mcspr
Copy link
Collaborator

@mcspr mcspr commented Jun 19, 2025

getting rid of volatile arg(s) is must-have for -std=c++20 and later

provide helper macros to init & load vars at specific points in code
modify existing macros to use c++-style casts & less volatile
change locals to plain non-volatile variables, avoid extra memw

also fixes odd const mask load in (pre_cmd) branch added in #9140
(does not always happen, though. noticed while modifying preamble)

mcspr added 4 commits June 19, 2025 19:28
getting rid of volatile arg(s) is must-have for -std=c++20 and later

provide helper macros to init & load vars at specific points in code
modify existing macros to use c++-style casts & less volatile
change locals to plain non-volatile variables, avoid extra memw

also fixes unintentional const mask load in (pre_cmd) branch
as noted in implementation, all but sp
@mcspr mcspr merged commit 4cc20a9 into esp8266:master Jul 3, 2025
28 checks passed
@mcspr mcspr deleted the spiutils/oops-volatile branch July 3, 2025 22:29
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.

1 participant