From patchwork Mon Dec 12 16:55:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 130797 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8AAB51007D1 for ; Tue, 13 Dec 2011 03:55:58 +1100 (EST) Received: (qmail 9270 invoked by alias); 12 Dec 2011 16:55:55 -0000 Received: (qmail 9261 invoked by uid 22791); 12 Dec 2011 16:55:54 -0000 X-SWARE-Spam-Status: No, hits=-7.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Dec 2011 16:55:40 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBCGtdT2021670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 12 Dec 2011 11:55:39 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pBCGtc3e031730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Dec 2011 11:55:39 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id pBCGtcBO009502 for ; Mon, 12 Dec 2011 17:55:38 +0100 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id pBCGtc5m009500 for gcc-patches@gcc.gnu.org; Mon, 12 Dec 2011 17:55:38 +0100 Date: Mon, 12 Dec 2011 17:55:37 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix gcc.dg/pr45819.c testcase on arm (PR testsuite/51511) Message-ID: <20111212165537.GR1957@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 PR testsuite/51511 * gcc.dg/pr45819.c: Add -w to dg-options. Jakub --- 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;