[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check |
Date: |
Thu, 10 Dec 2020 15:26:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
On 12/10/20 2:47 PM, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> 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 <marcandre.lureau@redhat.com>
> ---
> audio/audio.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/audio/audio.c b/audio/audio.c
> index 46578e4a58..d7a00294de 100644
> --- a/audio/audio.c
> +++ b/audio/audio.c
> @@ -122,13 +122,7 @@ int audio_bug (const char *funcname, int cond)
>
> #if defined AUDIO_BREAKPOINT_ON_BUG
> # if defined HOST_I386
> -# if defined __GNUC__
> - __asm__ ("int3");
> -# elif defined _MSC_VER
> - _asm _emit 0xcc;
> -# else
> - abort ();
> -# endif
> + __asm__ ("int3");
This was 15 years ago... Why not simply use abort() today?
> # else
> abort ();
> # endif
>
[PATCH v3 04/13] qemu-plugin.h: remove GCC < 4, marcandre . lureau, 2020/12/10
[PATCH v3 05/13] tests: remove GCC < 4 fallbacks, marcandre . lureau, 2020/12/10
[PATCH v3 06/13] virtiofsd: replace _Static_assert with QEMU_BUILD_BUG_ON, marcandre . lureau, 2020/12/10
[PATCH v3 07/13] compiler.h: explicit case for Clang printf attribute, marcandre . lureau, 2020/12/10
[PATCH v3 08/13] audio: remove GNUC & MSVC check, marcandre . lureau, 2020/12/10
- Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check,
Philippe Mathieu-Daudé <=
[PATCH v3 09/13] poison: remove GNUC check, marcandre . lureau, 2020/12/10
[PATCH v3 10/13] xen: remove GNUC check, marcandre . lureau, 2020/12/10
[PATCH v3 11/13] compiler: remove GNUC check, marcandre . lureau, 2020/12/10
[PATCH v3 12/13] linux-user: remove GNUC check, marcandre . lureau, 2020/12/10