From patchwork Mon Oct 11 20:11:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 67477 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 A777FB70AE for ; Tue, 12 Oct 2010 07:11:24 +1100 (EST) Received: (qmail 19339 invoked by alias); 11 Oct 2010 20:11:21 -0000 Received: (qmail 19324 invoked by uid 22791); 11 Oct 2010 20:11:19 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, 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; Mon, 11 Oct 2010 20:11:14 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id E7A44D81 for ; Mon, 11 Oct 2010 22:11:11 +0200 (CEST) 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 nWCf+Vt0MYM6 for ; Mon, 11 Oct 2010 22:11:09 +0200 (CEST) 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 CAE4CD7F for ; Mon, 11 Oct 2010 22:11:09 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id o9BKB9ga023323; Mon, 11 Oct 2010 22:11:09 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [testsuite] XFAIL gcc.dg/pragma-init-fini{,-2}.c on Solaris 8/x86 Date: Mon, 11 Oct 2010 22:11:09 +0200 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 The gcc.dg/pragma-init-fini*.c tests fail on Solaris 8/x86 with Sun as because that assembler version (unlike Solaris 8/SPARC as) doesn't understand .pushsection/.popsection. At first I've developed a patch to detect that condition and have gcc warn about it if the pragma is used, but given the age of that release and the corner case at hand, I'm now considering this overkill. Instead I just skip or xfail the two patches. Already tested with the appropriate runtest invocations; will apply to mainline, 4.4 and 4.5 branches after regtesting completes. Rainer 2010-10-09 Rainer Orth * gcc.dg/pragma-init-fini.c: Skip on i?86-*-solaris2.8 && !gas. * gcc.dg/pragma-init-fini-2.c: XFAIL on i?86-*-solaris2.8 && !gas. diff -r 83e972c2953f gcc/testsuite/gcc.dg/pragma-init-fini-2.c --- a/gcc/testsuite/gcc.dg/pragma-init-fini-2.c Sat Oct 09 16:30:43 2010 +0200 +++ b/gcc/testsuite/gcc.dg/pragma-init-fini-2.c Sat Oct 09 17:18:43 2010 +0200 @@ -2,6 +2,7 @@ /* { dg-do link { target *-*-solaris2.* } } */ /* { dg-options "-fpic" } */ +/* { dg-xfail-if "no .pushsection/.popsection" { i?86-*-solaris2.8 && { ! gas } } } */ #include diff -r 83e972c2953f gcc/testsuite/gcc.dg/pragma-init-fini.c --- a/gcc/testsuite/gcc.dg/pragma-init-fini.c Sat Oct 09 16:30:43 2010 +0200 +++ b/gcc/testsuite/gcc.dg/pragma-init-fini.c Sat Oct 09 17:18:43 2010 +0200 @@ -1,6 +1,7 @@ /* Tests for #pragma init and #pragma fini. */ /* { dg-do run { target *-*-solaris2.* } } */ +/* { dg-skip-if "no .pushsection/.popsection" { i?86-*-solaris2.8 && { ! gas } } } */ extern void abort ();