From patchwork Thu Mar 27 13:59:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Krebbel X-Patchwork-Id: 334339 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 197A5140088 for ; Fri, 28 Mar 2014 00:59:23 +1100 (EST) 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=p+a5KFluX/eOPN+OfZiDkS7b7sGZQdtIFXVyEr0zBlQOmxPvEvNfH Qx+Lvv0ZAUFIZInmhA9XyeNVFxwvFrxGDouAxTUEkQlndAIAhiwJCqdlFKetx4op dEFArbCikT7v8423JOpZKb5aXafby33JH0YG9ekjHZLdlfhzxM9UKI= 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=Zcq97bZ9W//7rTwR1B/HutHWnaA=; b=DMFuWy7jpEc+b/8VgU9x 4IZUoCO4qn/VrRo0oO/jGQk+7yScLV28sWTuEv2v/iqVcLpfduKcBFA9rGAgs0U8 2uXz7LzqOnkOdJ8qtDLsfPJC18mjFSptkmJRXe/btsfrQmqKNZ+s9JV6RbZnUDgS xs+V6tYSYvkyO04eKCL/0Ik= Received: (qmail 11027 invoked by alias); 27 Mar 2014 13:59:16 -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 11016 invoked by uid 89); 27 Mar 2014 13:59:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp11.uk.ibm.com Received: from e06smtp11.uk.ibm.com (HELO e06smtp11.uk.ibm.com) (195.75.94.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 27 Mar 2014 13:59:12 +0000 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Mar 2014 13:59:09 -0000 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 27 Mar 2014 13:59:08 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 650A61B08051 for ; Thu, 27 Mar 2014 13:59:01 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2RDwujQ66781300 for ; Thu, 27 Mar 2014 13:58:56 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2RDx727023832 for ; Thu, 27 Mar 2014 07:59:07 -0600 Received: from bart (dyn-9-152-212-28.boeblingen.de.ibm.com [9.152.212.28]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with SMTP id s2RDx5QY023771 for ; Thu, 27 Mar 2014 07:59:05 -0600 Received: by bart (sSMTP sendmail emulation); Thu, 27 Mar 2014 14:59:05 +0100 Date: Thu, 27 Mar 2014 14:59:05 +0100 From: Andreas Krebbel To: gcc-patches@gcc.gnu.org Subject: [PATCH] S/390: Don't include 32 bit fp to int routines for 64 bit libgcc Message-ID: <20140327135904.GA2883@bart> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14032713-5024-0000-0000-0000094B7D6B X-IsSubscribed: yes Hi, with r207507 I've made our fp to int conversion routines available also for the 32 bit biarch libgcc. The patch included these also for the 64 bit libgcc which is wrong since it prevent routines like fixsfti from being generated by libgcc2.c. The attached patch fixes the following testsuite regressions: < FAIL: gcc.c-torture/execute/pr49218.c compilation, -O0 < FAIL: gcc.dg/torture/fp-int-convert-timode.c -O0 (test for excess errors) Bye, -Andreas- 2014-03-27 Andreas Krebbel * configure.ac: Set host_address for S/390. * configure: Regenerate. * config.host: Append t-floattodi to tmake_file depending on host_address. diff --git a/libgcc/config.host b/libgcc/config.host index f8f74cc..f4a7428 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -1027,7 +1027,10 @@ s390-*-linux*) md_unwind_header=s390/linux-unwind.h ;; s390x-*-linux*) - tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi" + tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux" + if test "${host_address}" = 32; then + tmake_file="${tmake_file} s390/32/t-floattodi" + fi md_unwind_header=s390/linux-unwind.h ;; s390x-ibm-tpf*) diff --git a/libgcc/configure b/libgcc/configure index 35896de..9e30d5e 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -4321,7 +4321,7 @@ $as_echo "$libgcc_cv_cfi" >&6; } # word size rather than the address size. cat > conftest.c < conftest.c <