Skip to content
Commit f61b8b8c authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Carles Cufí
Browse files

semihosting: fix inline assembly output dependency



Commit d8f186aa ("arch: common: semihost: add semihosting
operations") encapsulated semihosting invocation in a per-arch
semihost_exec() function. There is a fixed register variable declaration
for the return value but this variable is not listed as an output
operand to respective inline assembly segments which is an error.
This is not reported as such by gcc and the generated code is still OK
in those particular instances but this is not guaranteed, and clang
does complain about such cases.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 1d189487
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment