Summary: | app-emulation/qemu-8.1.0 ../accel/tcg/cputlb.c: In function ‘do_ld_mmio_beN’: unreachable code reached | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mike Gilbert <floppym> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | dilfridge, gabravier, virtualization |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://gitlab.com/qemu-project/qemu/-/issues/1848 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111278 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build log |
Description
Mike Gilbert
![]() I can't seem to reproduce this one myself. Would you mind reporting it upstream at https://gitlab.com/qemu-project/qemu/-/issues? Seems to be CFLAGS related. I can successfully build it with -march=x86-64. qemu upstream calls this a "compiler bug". I believe the problem is in '-Og', see qemu code (include/qemu/osdep.h): #if defined(__OPTIMIZE__) && !defined(__NO_INLINE__) #define qemu_build_not_reached() qemu_build_not_reached_always() #else #define qemu_build_not_reached() g_assert_not_reached() #endif Probably, '-Og' makes __OPTIMIZE__ defined. I can confirm that '-Og -U__OPTIMIZE__' builds cleanly. (In reply to Ostashevskyi Viktor from comment #4) > I believe the problem is in '-Og', see qemu code (include/qemu/osdep.h): > The problem is already analysed in the QEMU and GCC bugs linked here. |