[PATCH] fixup! commands: ubsan: hide zero division in test
Sascha Hauer
s.hauer at pengutronix.de
Thu Mar 20 05:52:44 PDT 2025
On Wed, 19 Mar 2025 17:10:56 +0100, Ahmad Fatoum wrote:
> GCC complains that we pass the address of the variable instead of the
> variable itself:
>
> commands/ubsan.c: In function ‘test_ubsan_divrem_overflow’:
> error: lvalue required in ‘asm’ statement
>
> 63 | __asm__ ("" : "=r" (var) : "0" (var))
> | ^~~~~~~
> ./commands/ubsan.c:46:9: note: in expansion of macro ‘OPTIMIZER_HIDE_VAR’
> 46 | OPTIMIZER_HIDE_VAR(&val2);
>
> [...]
Applied, thanks!
[1/1] fixup! commands: ubsan: hide zero division in test
https://git.pengutronix.de/cgit/barebox/commit/?id=85749615acdd (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list