From patchwork Fri Jan 14 17:13:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 78963 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 C8C38B6F14 for ; Sat, 15 Jan 2011 04:13:59 +1100 (EST) Received: (qmail 10803 invoked by alias); 14 Jan 2011 17:13:55 -0000 Received: (qmail 10793 invoked by uid 22791); 14 Jan 2011 17:13:54 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, TW_BJ, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Jan 2011 17:13:48 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 99B85EDB; Fri, 14 Jan 2011 18:13:45 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZkV-3QCCXjYE; Fri, 14 Jan 2011 18:13:40 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 88284EDA; Fri, 14 Jan 2011 18:13:40 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p0EHDdsB003187; Fri, 14 Jan 2011 18:13:39 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Mike Stump , "Dominique d'Humieres" Subject: [objc, testsuite] Correct some objc.dg-struct-layout-encoding-1/t0[23]?_main.m XFAILs (PR objc/45989) Date: Fri, 14 Jan 2011 18:13:39 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (usg-unix-v) MIME-Version: 1.0 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 Currently, some objc.dg-struct-layout-encoding-1/t0*_main.m execution tests XPASS on many platforms. The following patch, developed primarily by Dominique with a few suggestions from myself, corrects this. Tested on i386-pc-solaris2.11 and sparc-sun-solaris2.11, ok for mainline? Thanks. Rainer 2011-01-08 Dominique d'Humieres Rainer Orth PR objc/45989 * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c (switchfiles): XFAIL objc.dg-struct-layout-encoding-1/t02[57-9]_main.m execution tests on i?86-*-*, x86_64-*-*, and powerpc*-apple-darwin* && ilp32. XFAIL objc.dg-struct-layout-encoding-1/t03[01]_main.m execution tests on i?86-*-* and x86_64-*-*. diff -r d0e91cf6bd2d gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c --- a/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c Fri Jan 14 07:18:54 2011 +0000 +++ b/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c Fri Jan 14 18:04:04 2011 +0100 @@ -1,5 +1,5 @@ /* Structure layout test generator. - Copyright (C) 2004, 2005, 2007, 2010 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2007, 2010, 2011 Free Software Foundation, Inc. Contributed by Jakub Jelinek . This file is part of GCC. @@ -236,17 +236,23 @@ || filecnt == 22) { fprintf (outfile, "\ -/* { dg-do run { xfail { \"powerpc*-*-aix*\" } } } */\n\ +/* { dg-do run { xfail { powerpc*-*-aix* } } } */\n\ /* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir); } /* FIXME: these should not be xfailed but they are because of bugs in libobjc and the objc front-end. 25 is because vectors are not encoded. The rest are because or zero sized - arrays are encoded as pointers. */ - else if (filecnt >= 25) + arrays are encoded as pointers. See PR objc/25361. */ + else if (filecnt == 25 || (filecnt >= 27 && filecnt <= 29)) { fprintf (outfile, "\ -/* { dg-do run { xfail *-*-* } } */\n\ +/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } || { powerpc*-apple-darwin* && ilp32 } } } } */\n\ +/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir); + } + else if (filecnt >= 30) + { + fprintf (outfile, "\ +/* { dg-do run { xfail { i?86-*-* x86_64-*-* } } } */\n\ /* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir); } else