summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/1541.toml
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
commit4b927bc37359dec23f67d3427fc982945f24f404 (patch)
tree245449ef9146942dc7fffd0235b48b7e70a00bf2 /gitlab/issues/target_missing/host_missing/accel_missing/1541.toml
parentaa8bd79cec7bf6790ddb01d156c2ef2201abbaab (diff)
downloademulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.tar.gz
emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.zip
add gitlab issues in toml format
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/1541.toml')
-rw-r--r--gitlab/issues/target_missing/host_missing/accel_missing/1541.toml42
1 files changed, 42 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/1541.toml b/gitlab/issues/target_missing/host_missing/accel_missing/1541.toml
new file mode 100644
index 00000000..629fcb5f
--- /dev/null
+++ b/gitlab/issues/target_missing/host_missing/accel_missing/1541.toml
@@ -0,0 +1,42 @@
+id = 1541
+title = "Invalid position of G_NORETURN in clang v15"
+state = "closed"
+created_at = "2023-03-13T15:35:28.067Z"
+closed_at = "2023-03-23T10:24:49.833Z"
+labels = ["Bite Sized"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/1541"
+host-os = "Arch Linux"
+host-arch = "x86_64"
+qemu-version = "v7.1.0 / master"
+guest-os = "n/a"
+guest-arch = "n/a"
+description = """Order of `G_NORETURN` used in https://gitlab.com/qemu-project/qemu/-/blob/0f3de970febd2c9b29dccecb63ca928c6802a101/include/qemu/osdep.h#L240-242 is not valid in clang++ 15.0.7.
+
+Switching `extern` with `G_NORETURN` seems to fix the issue."""
+reproduce = """1. Build qemu system for MIPSEL or use minimal reproducer:
+
+`example.cpp`:
+```
+#include "/path/to/qemu/include/glib-compat.h"
+
+extern G_NORETURN
+void // QEMU_ERROR("code path is reachable")
+    qemu_build_not_reached_always(void);
+```
+
+```
+$ clang++ --version
+clang version 15.0.7
+Target: x86_64-pc-linux-gnu
+Thread model: posix
+InstalledDir: /usr/bin
+$ clang++ -m64 -mcx16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu++11 -O0 -g example.cpp
+example.cpp:3:8: error: an attribute list cannot appear here
+extern G_NORETURN
+       ^~~~~~~~~~
+/usr/include/glib-2.0/glib/gmacros.h:1075:21: note: expanded from macro 'G_NORETURN'
+# define G_NORETURN [[noreturn]]
+                    ^~~~~~~~~~~~
+1 error generated.
+```"""
+additional = "n/a"