[C/C++ PATCH] Implement -Wshift-overflow (PR c++/55095) (take 3)
David Edelsohn
dje.gcc@gmail.com
Wed Jul 22 12:48:00 GMT 2015
On Tue, Jul 21, 2015 at 5:59 AM, Marek Polacek <polacek@redhat.com> wrote:
> On Mon, Jul 20, 2015 at 04:23:08PM -0400, David Edelsohn wrote:
>> This seems to have caused a number of new failures in the PPC
>> testsuite for vmx/unpack.
>
> Sorry about that. Should be fixed with this patch I'm about to commit.
>
> 2015-07-21 Marek Polacek <polacek@redhat.com>
>
> * gcc.dg/vmx/unpack-be-order.c: Use -Wno-shift-overflow.
> * gcc.dg/vmx/unpack.c: Likewise.
This doesn't fully fix the failures.
> * gcc.target/powerpc/quad-atomic.c: Likewise.
> diff --git gcc/testsuite/gcc.dg/vmx/unpack.c gcc/testsuite/gcc.dg/vmx/unpack.c
> index 3c13163..e71a5a6 100644
> --- gcc/testsuite/gcc.dg/vmx/unpack.c
> +++ gcc/testsuite/gcc.dg/vmx/unpack.c
> @@ -1,3 +1,5 @@
> +/* { dg-options "-Wno-shift-overflow" } */
> +
Should this be dg-additional-options ?
> #include "harness.h"
>
> #define BIG 4294967295
More information about the Gcc-patches
mailing list