[Top][All Lists]

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

Re: [Qemu-trivial] [Qemu-devel] [PATCH] Drop QEMU_GNUC_PREREQ() checks f

From: Peter Maydell
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] Drop QEMU_GNUC_PREREQ() checks for gcc older than 4.1
Date: Tue, 31 Jan 2017 16:58:39 +0000

On 31 January 2017 at 16:55, Daniel P. Berrange <address@hidden> wrote:
> On Tue, Jan 31, 2017 at 04:14:47PM +0000, Peter Maydell wrote:
>> We already require gcc 4.1 or newer (for the atomic
>> support), so the fallback codepaths for older gcc
>> versions than that are now dead code and we can
>> just delete them.
> Do we have any explicit check alreadu for 4.1, or do we
> just let the build fail on the atomic code ?
> IOW, is there any use in having..
> #if !QEMU_GNUC_PREREQ(4, 1)
> # error "QEMU requires GCC >= 4.1 or CLang"
> #endif

I guess we just barf in the atomics. An explicit check might
not be a bad idea I guess, though it depends a bit on how
many releases we've been implicitly requiring 4.1 for. I
suppose it would act as documentation of our current
minimum req.

-- PMM

reply via email to

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