From patchwork Sun Sep 13 08:32:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rich Felker X-Patchwork-Id: 517128 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1C1701401AD for ; Sun, 13 Sep 2015 18:32:35 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=UY31Txax; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=saNFW1TI8oMlsIFojc7delkd7jIRAJx5PKkmJigmJsw6FlADXFc+Q Meg7aaq67aqJQ0ZY3YavbiymUIH/Xpd4dhKfTkmN1Il+N69ul6GESzID7hdIgkmb tKeUp/q3BATeOtleUfVzxwbIYLwL9lyNQAktqluMfFcDCqDOjTylzs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=C9ESHFqdxb3htl//be9LJ7Vbyrc=; b=UY31Txaxxmp8PwtV7ipt +kTCnsjnF8q2f/cJmX9CzEF5KQ6RPPI0fw9XDP9p9WwdF7+Dn36gTajKWDSYzAlT d/k6g5XnK5j0ErXjdnz987IB7ueZW2ZuYfDU8iTiht2ii/zxu0KcoHLU9CIVztW0 GwqgUrnKTjytSxtATNvvlu0= Received: (qmail 59498 invoked by alias); 13 Sep 2015 08:32:27 -0000 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 Received: (qmail 59485 invoked by uid 89); 13 Sep 2015 08:32:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RDNS_DYNAMIC, TVD_RCVD_IP, URIBL_BLACK autolearn=no version=3.3.2 X-HELO: brightrain.aerifal.cx Received: from 216-12-86-13.cv.mvl.ntelos.net (HELO brightrain.aerifal.cx) (216.12.86.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 13 Sep 2015 08:32:25 +0000 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1Zb2hz-0004UD-00 for gcc-patches@gcc.gnu.org; Sun, 13 Sep 2015 08:32:23 +0000 Date: Sun, 13 Sep 2015 04:32:23 -0400 From: Rich Felker To: gcc-patches@gcc.gnu.org Subject: [PATCH] fix TLS support detection for sh targets Message-ID: <20150913083223.GA17773@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Bad patterns caused configure to always disable TLS for big-endian sh targets and for anything other than sh 3/4. Rich --- gcc-5.2.0.base/gcc/configure.ac 2015-08-11 16:23:36.000000000 +0000 +++ gcc-5.2.0/gcc/configure.ac 2015-09-13 08:17:31.714972082 +0000 @@ -3300,7 +3300,7 @@ tls_first_minor=14 tls_as_opt="-m64 -Aesame --fatal-warnings" ;; - sh-*-* | sh[34]-*-*) + sh-*-* | sh[123456789lbe]*-*-*) conftest_s=' .section ".tdata","awT",@progbits foo: .long 25 --- gcc-5.2.0.base/gcc/configure 2015-08-11 16:23:35.000000000 +0000 +++ gcc-5.2.0/gcc/configure 2015-09-13 08:17:42.608304751 +0000 @@ -23754,7 +23754,7 @@ tls_first_minor=14 tls_as_opt="-m64 -Aesame --fatal-warnings" ;; - sh-*-* | sh[34]-*-*) + sh-*-* | sh[123456789lbe]*-*-*) conftest_s=' .section ".tdata","awT",@progbits foo: .long 25