From patchwork Mon Oct 8 15:08:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 190046 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 660BD2C030C for ; Tue, 9 Oct 2012 02:08:35 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1350313716; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Cc:Subject:Date:Message-ID:User-Agent: MIME-Version:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=ydFsNcYJU5wt4FZe9xNIj3j+1MM=; b=URziho7rgcsmtY4 q0IlpuLWM9Fsy4PrDtHQp7DJuwJPnkprrVJX/hgX8KgTG8aG5ThsWrnpcaBqDZa7 KrwczkKsP0S/Ztd1mU0gdFG2EORS8IXlS5y5Pa2PPdMcpc88Av8cUDuEGAKdWEsH 1ckRRh2w4JDBAyGNoY64j0b2Avx0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:From:To:Cc:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=eO6THQrRIOW+YJrfaTq05xskclpJvs8A9wD5vh3F/X+dN/o4vZID39q31rBUzl QXBSQHOX2VAZNppyS1QaGjgS4DkF8vQD71W+AE/LRF4DzI6uu0euXi4rlPy1fnxu /G1P1B0PpBLsTrJZ0DfS6khcWWKlM2VCn1PmUOdvDu0xc=; Received: (qmail 16696 invoked by alias); 8 Oct 2012 15:08:32 -0000 Received: (qmail 16686 invoked by uid 22791); 8 Oct 2012 15:08:31 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL, BAYES_00, 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, 08 Oct 2012 15:08:24 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 27F2681D; Mon, 8 Oct 2012 17:08:23 +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 OywNTQXpzDNA; Mon, 8 Oct 2012 17:08:21 +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 9D7EF81B; Mon, 8 Oct 2012 17:08:21 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id q98F8KFh014951; Mon, 8 Oct 2012 17:08:20 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: "H.J. Lu" Subject: [testsuite] Require tls_runtime in gcc.target/i386/pr54445-1.c Date: Mon, 08 Oct 2012 17:08:20 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (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 gcc.target/i386/pr54445-1.c FAILs to execute on Solaris 9 with native TLS: ld.so.1: pr54445-1.exe: fatal: pr54445-1.exe: object requires TLS, but TLS faile d to initialize The following patch fixes this by both requiring TLS runtime support and adding the necessary options. Tested with the appropriate runtest invocation in i386-pc-solaris2.9 and x86_64-unknown-linux-gnu, installed on mainline. Rainer 2012-10-08 Rainer Orth * gcc.target/i386/pr54445-1.c: Require tls_runtime, add tls options. # HG changeset patch # Parent 67ccd7a114e0eaf13cdb8c6d8f109c8fdfb86a96 Require tls_runtime in gcc.target/i386/pr54445-1.c diff --git a/gcc/testsuite/gcc.target/i386/pr54445-1.c b/gcc/testsuite/gcc.target/i386/pr54445-1.c --- a/gcc/testsuite/gcc.target/i386/pr54445-1.c +++ b/gcc/testsuite/gcc.target/i386/pr54445-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ +/* { dg-do run { target tls_runtime } } */ /* { dg-options "-O2" } */ +/* { dg-add-options tls } */ __thread unsigned char tls_array[64];