[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling QEMU with different optimization levels & -Werror=maybe-uninit
From: |
Marc-André Lureau |
Subject: |
Compiling QEMU with different optimization levels & -Werror=maybe-uninitialized |
Date: |
Wed, 27 Mar 2024 15:28:08 +0400 |
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
- Compiling QEMU with different optimization levels & -Werror=maybe-uninitialized,
Marc-André Lureau <=