[PATCH 07/27] Replace GCC_FMT_ATTR with G_GNUC_PRINTF

2022-03-16 Thread marcandre . lureau
From: Marc-André Lureau One less qemu-specific macro. It also helps to make some headers/units only depend on glib, and thus moved in standalone projects eventually. Signed-off-by: Marc-André Lureau --- audio/audio.h | 4 +-- block/qcow2.h |

[PATCH v3 12/13] linux-user: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions. Signed-off-by: Marc-André Lureau Reviewed-by: Peter Maydell --- linux-user/strace.c | 4 1 file changed, 4 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 11fea14fb

[PATCH v3 13/13] compiler.h: remove QEMU_GNUC_PREREQ

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau When needed, the G_GNUC_CHECK_VERSION() glib macro can be used instead. Signed-off-by: Marc-André Lureau --- include/qemu/compiler.h| 11 --- scripts/cocci-macro-file.h | 1 - 2 files changed, 12 deletions(-) diff --git a/include/qemu/compiler.h b/include/

[PATCH v3 11/13] compiler: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions. Signed-off-by: Marc-André Lureau --- include/qemu/compiler.h | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 62122

[PATCH v3 10/13] xen: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions Signed-off-by: Marc-André Lureau Acked-by: Stefano Stabellini --- include/hw/xen/interface/io/ring.h | 9 - 1 file changed, 9 deletions(-) diff --git a/include/hw/xen/interface/io/ring.h

[PATCH v3 09/13] poison: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions Signed-off-by: Marc-André Lureau Reviewed-by: Peter Maydell --- include/exec/poison.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/exec/poison.h b/include/exec/poison.h index 7b9ac3

[PATCH v3 08/13] audio: remove GNUC & MSVC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires either GCC or Clang, which both advertize __GNUC__. Drop MSVC fallback path. Note: I intentionally left further cleanups for a later work. Signed-off-by: Marc-André Lureau --- audio/audio.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) dif

[PATCH v3 07/13] compiler.h: explicit case for Clang printf attribute

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8, we could thus drop earlier version checks. Except clang advertizes itself as GCC 4.2.1. Since clang doesn't support gnu_printf, make that case explicit

[PATCH v3 06/13] virtiofsd: replace _Static_assert with QEMU_BUILD_BUG_ON

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau This allows to get rid of a check for older GCC version (which was a bit bogus too since it was falling back on c++ version..) Signed-off-by: Marc-André Lureau --- tools/virtiofsd/fuse_common.h | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --gi

[PATCH v3 05/13] tests: remove GCC < 4 fallbacks

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible) Signed-off-by: Marc-André Lureau Reviewed-by: Peter Maydell Acked-by: Alex Bennée --- te

[PATCH v3 04/13] qemu-plugin.h: remove GCC < 4

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible) Signed-off-by: Marc-André Lureau Acked-by: Alex Bennée --- include/qemu/qemu-plugin.h | 9

[PATCH v3 03/13] compiler.h: remove GCC < 3 __builtin_expect fallback

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible and supports __builtin_expect too) Signed-off-by: Marc-André Lureau --- include/qemu/compil

[PATCH v3 02/13] accel/tcg: Remove special case for GCC < 4.6

2020-12-10 Thread marcandre . lureau
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8. We can safely remove the special case for GCC 4.6 introduced in commit 0448f5f8b81 ("cpu-exec: Fix compiler warning (-Werror=clob

[PATCH v3 00/13] Remove GCC < 4.8 checks

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Hi, Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. v3: - drop first patch replacing QEMU_GNUC_PREREQ with G_GNUC_CHECK_VERSION - add last patch to remove QEMU_GNUC_PREREQ - tweak commit messages

[PATCH v3 01/13] qemu/atomic: Drop special case for unsupported compiler

2020-12-10 Thread marcandre . lureau
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which has the GCC BZ#36793 bug fixed. We can safely remove the special case introduced in commit a281ebc11a6 ("virtio: add missin