From patchwork Mon Aug 29 19:13:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 663797 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 3sNLsZ2Rr7z9s9G for ; Tue, 30 Aug 2016 05:13:37 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=pFFDqYbX; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=Tddz+KMH+UsJah3XWOEgQ9NPci566rVpQkbIGrDP7wSrKlgywU VhQvgP34V37o2c1NTDjgIda8CzAqEAl3igY5ORrVfSaXJ4EISRhf6RwEKweya9AS eqpBor0fF/HsRKgI8coSj7d98o/8wex3alTd3e/yQinw7IM3ngCKiuO9c= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=oC84/MM43XwXwLEziFWSZlzp4HE=; b=pFFDqYbXk2SQBEtO1YSx kzExgnJ7Bk9vL/en1WIGlnNuYNVL8fXxSEbgJxk9xT/TCmT4xLP4er/53ZsdQPCn Ym5jeY7Y0gleXunh3m/qDli2xOp6VopMkl8POmAa0MT3nVRBNjFLIwwa2KY4NOkS BXoBT7Xk1upQZbqWjSwGAcM= Received: (qmail 65188 invoked by alias); 29 Aug 2016 19:13:30 -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 65176 invoked by uid 89); 29 Aug 2016 19:13:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 spammy=awk, substr, 2766, UD:st_blksize X-HELO: mail-qt0-f173.google.com Received: from mail-qt0-f173.google.com (HELO mail-qt0-f173.google.com) (209.85.216.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Aug 2016 19:13:19 +0000 Received: by mail-qt0-f173.google.com with SMTP id u25so73349004qtb.1 for ; Mon, 29 Aug 2016 12:13:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version; bh=/8A1cAErFGYNuhEGwvol52ubRjHEqfzPwgN6NDKvdVI=; b=li1oMC8bX4DD4JcpTEBBWrjbObBc/oHIEhwhZ/qEowtkg7RedhRmlLFf+km/QqbNKt 5dIDzGP5BNQKdIFEVD4Vr4qgNJPR5JDPBladi7VYlJ+fXes0uP2KSDjONm/v38jL+noo sEf0aD/jN2u3iv8NR8ailSAqe7vdPJMreo1G6WmGW23UudJLsqPtdEgzurrSYyqbMEMb UMRPa1Yxl/aO5AR7pgnQ370gNqy4lzT6AOtUaYlF/YqMTUMcMCoUYyC6zkefKVsEjqlq +spayuHq3eIaS9u4M8PkaCCyF6SMF7sVzismHrKNKgnIIAe9V54W44ObB+bT6sNWPGrE 14wQ== X-Gm-Message-State: AE9vXwPA35d2kyZNHd9YQWCr1T9CaNCRO23VZQRJOlGOOZ/fjjcwOG1wv3rebj+aoDGcAQ== X-Received: by 10.237.51.162 with SMTP id v31mr20076735qtd.1.1472497997925; Mon, 29 Aug 2016 12:13:17 -0700 (PDT) Received: from ?IPv6:2601:181:c003:1930:3fe6:c217:b86a:6e86? ([2601:181:c003:1930:3fe6:c217:b86a:6e86]) by smtp.googlemail.com with ESMTPSA id t21sm2467400qkg.4.2016.08.29.12.13.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Aug 2016 12:13:17 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: [PTX] unbreak libgfortran Message-ID: <61fee4a4-5e39-7ce9-4f74-ad35163bebeb@acm.org> Date: Mon, 29 Aug 2016 15:13:14 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Libgfortran's configure tests cause it to think localtime_r doesn't exist, and then the build dies with an extern decl/static defn mismatch. This hardwires the expected newlib reoutines, in the same manner as mips doesn. nathan 2016-08-29 Nathan Sidwell * configure.ac (nvptx-*): Hardwire newlib. * configure: Rebuilt. Index: configure.ac =================================================================== --- configure.ac (revision 239820) +++ configure.ac (working copy) @@ -276,6 +276,8 @@ AC_CHECK_MEMBERS([struct stat.st_blksize case "${host}--x${with_newlib}" in mips*--xyes) hardwire_newlib=1;; + nvptx*--xyes) + hardwire_newlib=1;; esac # Check for library functions. Index: configure =================================================================== --- configure (revision 239820) +++ configure (working copy) @@ -10308,7 +10308,7 @@ _LT_EOF if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no @@ -14157,7 +14157,7 @@ _LT_EOF if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no @@ -16471,6 +16471,8 @@ fi case "${host}--x${with_newlib}" in mips*--xyes) hardwire_newlib=1;; + nvptx*--xyes) + hardwire_newlib=1;; esac # Check for library functions.