From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4615 invoked by alias); 29 Jul 2007 22:21:50 -0000 Received: (qmail 4606 invoked by uid 22791); 29 Jul 2007 22:21:49 -0000 X-Spam-Check-By: sourceware.org Received: from qb-out-0506.google.com (HELO qb-out-0506.google.com) (72.14.204.234) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Jul 2007 22:21:46 +0000 Received: by qb-out-0506.google.com with SMTP id p30so1410780qba for ; Sun, 29 Jul 2007 15:21:44 -0700 (PDT) Received: by 10.35.77.18 with SMTP id e18mr8528412pyl.1185747704381; Sun, 29 Jul 2007 15:21:44 -0700 (PDT) Received: from ?172.17.146.143? ( [38.99.84.40]) by mx.google.com with ESMTPS id f75sm1965013pye.2007.07.29.15.21.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jul 2007 15:21:43 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) To: gcc-patches@gcc.gnu.org Message-Id: <99E47762-D3A5-4735-8997-7FFDFD0FD698@gmail.com> Content-Type: multipart/mixed; boundary=Apple-Mail-3--865414804 From: Andrew Pinski Subject: [PATCH] Fix pragma-darwin.c (and turn on for i386-darwin also) Date: Sun, 29 Jul 2007 22:24:00 -0000 X-Mailer: Apple Mail (2.752.3) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02084.txt.bz2 --Apple-Mail-3--865414804 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-length: 258 Hi, This path fixes the testcase for the dg-error/dg-warning change so that the warnings are now marked with dg-warning. This patch also turns on this testcase for i386-darwin. OK? Tested on i386-darwin with no regressions. Thanks, Andrew Pinski --Apple-Mail-3--865414804 Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name=fixpragma-darwin.c.diff.txt Content-Disposition: attachment; filename=fixpragma-darwin.c.diff.txt Content-length: 1872 Index: gcc.dg/pragma-darwin.c =================================================================== --- gcc.dg/pragma-darwin.c (revision 127042) +++ gcc.dg/pragma-darwin.c (working copy) @@ -1,6 +1,6 @@ /* Darwin (Mac OS X) pragma exercises. */ -/* { dg-do run { target powerpc-*-darwin* } } */ +/* { dg-do run { target *-*-darwin* } } */ /* { dg-options "-O -Wunused" } */ /* The mark pragma is to help decorate IDEs. */ @@ -12,11 +12,11 @@ /* The options pragma used to do a lot, now it's only for emulating m68k alignment rules in structs. */ -#pragma options 23 /* { dg-error "malformed '#pragma options'" } */ -#pragma options align /* { dg-error "malformed '#pragma options'" } */ -#pragma options align natural /* { dg-error "malformed '#pragma options'" } */ -#pragma options align=45 /* { dg-error "malformed '#pragma options'" } */ -#pragma options align=foo /* { dg-error "malformed '#pragma options align" } */ +#pragma options 23 /* { dg-warning "malformed '#pragma options'" } */ +#pragma options align /* { dg-warning "malformed '#pragma options'" } */ +#pragma options align natural /* { dg-warning "malformed '#pragma options'" } */ +#pragma options align=45 /* { dg-warning "malformed '#pragma options'" } */ +#pragma options align=foo /* { dg-warning "malformed '#pragma options align" } */ #ifndef __LP64__ #pragma options align=mac68k @@ -64,7 +64,7 @@ { int a, b; /* Trying to match on '(' or ')' gives regexp headaches, use . instead. */ -#pragma unused /* { dg-error "missing '.' after '#pragma unused" } */ -#pragma unused (a /* { dg-error "missing '.' after '#pragma unused" } */ +#pragma unused /* { dg-warning "missing '.' after '#pragma unused" } */ +#pragma unused (a /* { dg-warning "missing '.' after '#pragma unused" } */ #pragma unused (b) foo /* { dg-warning "junk at end of '#pragma unused'" } */ } --Apple-Mail-3--865414804--