All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiling QEMU with different optimization levels & -Werror=maybe-uninitialized
@ 2024-03-27 11:28 Marc-André Lureau
  2024-03-27 11:41 ` Daniel P. Berrangé
  0 siblings, 1 reply; 2+ messages in thread
From: Marc-André Lureau @ 2024-03-27 11:28 UTC (permalink / raw)
  To: QEMU

Hi,

Depending -Doptimization=<value>, I get different results (GCC 13.2.1)
- g: produces -Werror=maybe-uninitialized errors
- 0: clean build
- 1: produces -Werror=maybe-uninitialized errors
- 2: clean build
- 3: produces few -Werror=maybe-uninitialized errors
- s: produces -Werror=maybe-uninitialized errors

They are about 20, probably false-positives, although it's
understandable the compiler is confused as I am too sometime!

Is it a known issue? Are we willing to help the compiler in all those
optimization levels? I can send a patch series for review in this
case.

thanks

--
Marc-André Lureau


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-27 11:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-27 11:28 Compiling QEMU with different optimization levels & -Werror=maybe-uninitialized Marc-André Lureau
2024-03-27 11:41 ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.