qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] d22797: configure: Use -std=gnu11


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] d22797: configure: Use -std=gnu11
Date: Thu, 17 Jun 2021 07:43:17 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d22797ce36a388214dfc03b49d3609a334a52ff7
      
https://github.com/qemu/qemu/commit/d22797ce36a388214dfc03b49d3609a334a52ff7
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M configure
    M meson.build

  Log Message:
  -----------
  configure: Use -std=gnu11

Now that the minimum gcc version is 7.5, we can use C11.
This will allow lots of cleanups to the code, currently
hidden behind macros in include/qemu/compiler.h.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-2-richard.henderson@linaro.org>


  Commit: 6c06aca03678e72ed05aa0762d0935c81f06bfcc
      
https://github.com/qemu/qemu/commit/6c06aca03678e72ed05aa0762d0935c81f06bfcc
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M fpu/softfloat.c

  Log Message:
  -----------
  softfloat: Use _Generic instead of QEMU_GENERIC

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-3-richard.henderson@linaro.org>


  Commit: 4b193bb798f31dde78b2ec4ba299de6d962db8a4
      
https://github.com/qemu/qemu/commit/4b193bb798f31dde78b2ec4ba299de6d962db8a4
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M include/qemu/thread-posix.h
    M include/qemu/thread-win32.h
    M include/qemu/thread.h
    M util/qemu-thread-posix.c

  Log Message:
  -----------
  util: Use real functions for thread-posix QemuRecMutex

Move the declarations from thread-win32.h into thread.h
and remove the macro redirection from thread-posix.h.
This will be required by following cleanups.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-4-richard.henderson@linaro.org>


  Commit: 9c75bae717eae4c139cbd8b6a713cff01fe718f0
      
https://github.com/qemu/qemu/commit/9c75bae717eae4c139cbd8b6a713cff01fe718f0
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M include/qemu/thread.h
    M util/qemu-thread-posix.c
    M util/qemu-thread-win32.c

  Log Message:
  -----------
  util: Pass file+line to qemu_rec_mutex_unlock_impl

Create macros for file+line expansion in qemu_rec_mutex_unlock
like we have for qemu_mutex_unlock.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-5-richard.henderson@linaro.org>


  Commit: 6c98635ed7772e63b98944ab972c1eef8e498da3
      
https://github.com/qemu/qemu/commit/6c98635ed7772e63b98944ab972c1eef8e498da3
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M include/qemu/thread-posix.h
    M util/qemu-thread-posix.c

  Log Message:
  -----------
  util: Use unique type for QemuRecMutex in thread-posix.h

We will shortly convert lockable.h to _Generic, and we cannot
have two compatible types in the same expansion.  Wrap QemuMutex
in a struct, and unwrap in qemu-thread-posix.c.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-6-richard.henderson@linaro.org>


  Commit: 4ffb0681d7de34a5286f390a19fb48709107903b
      
https://github.com/qemu/qemu/commit/4ffb0681d7de34a5286f390a19fb48709107903b
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M include/qemu/lockable.h

  Log Message:
  -----------
  include/qemu/lockable: Use _Generic instead of QEMU_GENERIC

This is both more and less complicated than our expansion
using __builtin_choose_expr and __builtin_types_compatible_p.

The expansion through QEMU_MAKE_LOCKABLE_ doesn't work because
we're not emumerating all of the types within the same _Generic,
which results in errors about unhandled cases.  We must also
handle void* explicitly, so that the NULL constant can be used.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-7-richard.henderson@linaro.org>


  Commit: 8bae43fa1a3d4d9d5aa589984235db6865f5a347
      
https://github.com/qemu/qemu/commit/8bae43fa1a3d4d9d5aa589984235db6865f5a347
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M include/qemu/compiler.h

  Log Message:
  -----------
  qemu/compiler: Remove QEMU_GENERIC

All previous users now use C11 _Generic.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-8-richard.henderson@linaro.org>


  Commit: c7a7cb5692690ad621b6eb2d1c7256907ff45d67
      
https://github.com/qemu/qemu/commit/c7a7cb5692690ad621b6eb2d1c7256907ff45d67
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M configure
    M include/qemu/compiler.h

  Log Message:
  -----------
  configure: Remove probe for _Static_assert

_Static_assert is part of C11, which is now required.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-9-richard.henderson@linaro.org>


  Commit: 18e53dff939898c6dd00d206a3c2f5cd3d6669db
      
https://github.com/qemu/qemu/commit/18e53dff939898c6dd00d206a3c2f5cd3d6669db
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M configure
    M fpu/softfloat.c
    M include/qemu/compiler.h
    M include/qemu/lockable.h
    M include/qemu/thread-posix.h
    M include/qemu/thread-win32.h
    M include/qemu/thread.h
    M meson.build
    M util/qemu-thread-posix.c
    M util/qemu-thread-win32.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/rth-gitlab/tags/pull-c11-20210615' into 
staging

Change to -std=gnu11.
Replace QEMU_GENERIC with _Generic.
Remove configure detect of _Static_assert.

# gpg: Signature made Wed 16 Jun 2021 02:32:32 BST
# gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg:                issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" 
[full]
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F

* remotes/rth-gitlab/tags/pull-c11-20210615:
  configure: Remove probe for _Static_assert
  qemu/compiler: Remove QEMU_GENERIC
  include/qemu/lockable: Use _Generic instead of QEMU_GENERIC
  util: Use unique type for QemuRecMutex in thread-posix.h
  util: Pass file+line to qemu_rec_mutex_unlock_impl
  util: Use real functions for thread-posix QemuRecMutex
  softfloat: Use _Generic instead of QEMU_GENERIC
  configure: Use -std=gnu11

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/38848ce56584...18e53dff9398



reply via email to

[Prev in Thread] Current Thread [Next in Thread]