| commit | c1b0cf8ec67c0f9cb714c2bda2541c33cbd2c8f4 | [log] [tgz] |
|---|---|---|
| author | Peter Bigot <peter.bigot@nordicsemi.no> | Tue Nov 17 08:11:45 2020 -0600 |
| committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Nov 19 12:37:33 2020 +0100 |
| tree | 5abcd55fee586e849030d97224628e18d167f5b6 | |
| parent | f0250d5c71f2d5c4896423e1aa1a1f0d655f2c5c [diff] |
lib: cbprintf: work around LLVM code generation bug LLVM building for qemu_x86 appears to have an optimization bug where a union that is assigned to hold values read from va_args() is inferred to be a constant value, so is placed in ROM with an all-zero content. Prevent this by packing the conversion state and the value union into a single container structure that's stack allocated. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>