Re: Unit Test Aborts when building with -ftrapv compiler option

2024-02-09 Thread Daniel P . Berrangé
On Fri, Feb 09, 2024 at 08:02:49AM +0100, Thomas Huth wrote: > On 08/02/2024 20.23, Richard Schmitt wrote: > > In an attempt to build qemu with hardened gcc compiler options, we > > specified the -ftrapv switch rather than the -fwrapv switch.  The > > switches define the behavior of integer overflo

Re: Unit Test Aborts when building with -ftrapv compiler option

2024-02-08 Thread Thomas Huth
On 08/02/2024 20.23, Richard Schmitt wrote: In an attempt to build qemu with hardened gcc compiler options, we specified the -ftrapv switch rather than the -fwrapv switch.  The switches define the behavior of integer overflows.  -ftrapv causes an abort on integer overflow, -fwrapv causes overfl

Unit Test Aborts when building with -ftrapv compiler option

2024-02-08 Thread Richard Schmitt
In an attempt to build qemu with hardened gcc compiler options, we specified the -ftrapv switch rather than the -fwrapv switch. The switches define the behavior of integer overflows. -ftrapv causes an abort on integer overflow, -fwrapv causes overflows to simply wrap without any error indicatio