Hi!

On ARM because -fstrict-volatile-bitfields is on we get a warning about
volatile access to unaligned field, this patch adds -w to avoid failing
because of that warning.  Regtested on x86_64-linux and i686-linux
and with arm cross on the given testcase, committed as obvious.

2011-12-12  Jakub Jelinek  <ja...@redhat.com>

        PR testsuite/51511
        * gcc.dg/pr45819.c: Add -w to dg-options.

--- gcc/testsuite/gcc.dg/pr45819.c.jj   2011-07-22 22:14:59.000000000 +0200
+++ gcc/testsuite/gcc.dg/pr45819.c      2011-12-12 10:10:43.946416951 +0100
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fdump-tree-optimized -w" } */
 
 struct ehci_regs {
     char x;

        Jakub

Reply via email to