Skip to content
Commit b3073f00 authored by Keith Packard's avatar Keith Packard Committed by Stephanos Ioannidis
Browse files

gcc/picolibc: Disable -fprintf-return-value when printf is not complete



GCC will compute expected sprintf (et al) return values internally and use
them in place of the actual return value. When the printf implementation
has reduced functionality, gcc may compute a different value.

For picolibc, this means disabling the optimization unless floating point
output is enabled.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent cb5c4405
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment