qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] configure: Always compile with -fwrapv


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] configure: Always compile with -fwrapv
Date: Mon, 12 Sep 2016 17:22:55 +0100

On 12 September 2016 at 16:04, Markus Armbruster <address@hidden> wrote:
> If I remember correctly, we discussed -fno-strict-overflow (which the
> kernel uses), but in the end opted for the more stringent -fwrapv.

Yep. -fno-strict-overflow just says "don't do bad things on
integer overflow (but it's still a bug in the program if it
happens)", so overflows are still program bugs and
the compiler/sanitizer will still complain about them.
You need -fwrapv to say "overflows aren't bugs at all".

thanks
-- PMM



reply via email to

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