From patchwork Thu Aug 26 15:53:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 62784 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 7F20EB70DD for ; Fri, 27 Aug 2010 01:54:12 +1000 (EST) Received: (qmail 20918 invoked by alias); 26 Aug 2010 15:54:10 -0000 Received: (qmail 20906 invoked by uid 22791); 26 Aug 2010 15:54:10 -0000 X-SWARE-Spam-Status: No, hits=-2.0 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; Thu, 26 Aug 2010 15:53:37 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id A21AB42A; Thu, 26 Aug 2010 17:53:35 +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 JrOudcGLE1Oy; Thu, 26 Aug 2010 17:53:34 +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 ED810429; Thu, 26 Aug 2010 17:53:33 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.3+Sun/8.14.3/Submit) id o7QFrX4L029671; Thu, 26 Aug 2010 17:53:33 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Iain Sandoe Subject: [testsuite] Always use dg-add-options tls where required Date: Thu, 26 Aug 2010 17:53:33 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (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 Three recent TLS execution tests didn't use dg-add-options tls, which caused them to fail on Solaris 8 and 9. The following patch fixes this. Tested on i386-pc-solaris2.9 with the appropriate runtest invocations. Installed as obvious. Rainer 2010-08-26 Rainer Orth * gcc.dg/tls/thr-init-2.c: Use dg-add-options tls. * gcc.dg/torture/tls/thr-init-1.c: Likewise. * gcc.dg/torture/tls/thr-init-2.c: Likewise. diff -r 0cf77b5772bf gcc/testsuite/gcc.dg/tls/thr-init-2.c --- a/gcc/testsuite/gcc.dg/tls/thr-init-2.c Mon Aug 23 13:25:29 2010 +0200 +++ b/gcc/testsuite/gcc.dg/tls/thr-init-2.c Thu Aug 26 17:44:58 2010 +0200 @@ -1,5 +1,6 @@ /* { dg-require-effective-target tls } */ /* { dg-do run } */ +/* { dg-add-options tls } */ extern void abort() ; diff -r 0cf77b5772bf gcc/testsuite/gcc.dg/torture/tls/thr-init-1.c --- a/gcc/testsuite/gcc.dg/torture/tls/thr-init-1.c Mon Aug 23 13:25:29 2010 +0200 +++ b/gcc/testsuite/gcc.dg/torture/tls/thr-init-1.c Thu Aug 26 17:44:58 2010 +0200 @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target tls } */ +/* { dg-add-options tls } */ extern int printf (char *,...); extern void abort() ; diff -r 0cf77b5772bf gcc/testsuite/gcc.dg/torture/tls/thr-init-2.c --- a/gcc/testsuite/gcc.dg/torture/tls/thr-init-2.c Mon Aug 23 13:25:29 2010 +0200 +++ b/gcc/testsuite/gcc.dg/torture/tls/thr-init-2.c Thu Aug 26 17:44:58 2010 +0200 @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target tls } */ +/* { dg-add-options tls } */ extern int printf (char *,...); extern void abort() ;