From patchwork Thu May 23 02:21:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 1103776 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-501498-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=axis.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="xVP9b9I5"; dkim-atps=neutral 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 458YCq1m4yz9s1c for ; Thu, 23 May 2019 12:21:34 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=O6H0hCUHJko1++a9 O6Qg/GqV9ou/TfO61GHlZ3bVG6Y+q42F8tr2S+r0vwRn5vdd2+FIXRLxaJ3siBgj ulmvyqIXHm4psLWYa3yKnRTTfn4rBWg+0mLD3U3HztSpUppN8jVFGOgniV0Owmza 2aesJ4fhq3sXSMaaVLDvD3C/ang= 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 :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=fLJnJCUs/KH3Q2UAHUfcTi 023OY=; b=xVP9b9I54lFaM4VHoYPG4hBPLojxFMiHerDnnu7eAZGUokdk8rmU3N 7/tgRMegCFvjJ9ETcP6TQxr6Kx7DvAlbigrIYAFePnUU3j9BNtJJGzDJeMkW45s/ YBz5WxwuxAnYIpVOgGf0a7U4nGmIaHlD6Swb8DhEsHB4pzG1gyj90= Received: (qmail 69363 invoked by alias); 23 May 2019 02:21:23 -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 69347 invoked by uid 89); 23 May 2019 02:21:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Gate, gate, H-P, h-p X-HELO: bastet.se.axis.com Received: from bastet.se.axis.com (HELO bastet.se.axis.com) (195.60.68.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 May 2019 02:21:18 +0000 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 7AD2418541; Thu, 23 May 2019 04:21:15 +0200 (CEST) X-Axis-User: NO X-Axis-NonUser: YES Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id Tqi0FNRTvCmi; Thu, 23 May 2019 04:21:14 +0200 (CEST) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id B798218526; Thu, 23 May 2019 04:21:14 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9AD6E1A067; Thu, 23 May 2019 04:21:14 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8F6271A066; Thu, 23 May 2019 04:21:14 +0200 (CEST) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Thu, 23 May 2019 04:21:14 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by thoth.se.axis.com (Postfix) with ESMTP id 82A291F9B; Thu, 23 May 2019 04:21:14 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id x4N2LEDl017128; Thu, 23 May 2019 04:21:14 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id x4N2LDjI017124; Thu, 23 May 2019 04:21:13 +0200 Date: Thu, 23 May 2019 04:21:13 +0200 Message-Id: <201905230221.x4N2LDjI017124@ignucius.se.axis.com> From: Hans-Peter Nilsson To: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Fixed: "required ftruncate or chsize support not present" in gfortran testsuite MIME-Version: 1.0 There was a regression for gfortran.dg/fmt_en.f90 for cris-elf that on inspection was due to it having acquired a truncation call through the runtime. I updated that and the new tests that had "Fortran runtime error: required ftruncate or chsize support not present" messages in gfortran.log, ran past cris-elf and committed as obvious. See also from which I copy-pasted most of this message. (Yep, 11 years ago.) gcc/testsuite: * gfortran.dg/dec_io_1.f90, gfortran.dg/dtio_1.f90, gfortran.dg/dtio_12.f90, gfortran.dg/fmt_en.f90, gfortran.dg/namelist_89.f90: Gate test on effective_target fd_truncate. brgds, H-P diff --git gcc/testsuite/gfortran.dg/dec_io_1.f90 gcc/testsuite/gfortran.dg/dec_io_1.f90 index 2edc427..58daf30 100644 --- gcc/testsuite/gfortran.dg/dec_io_1.f90 +++ gcc/testsuite/gfortran.dg/dec_io_1.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! { dg-options "-fdec" } ! ! Run-time tests for values of DEC I/O parameters (doesn't test functionality). diff --git gcc/testsuite/gfortran.dg/dtio_1.f90 gcc/testsuite/gfortran.dg/dtio_1.f90 index c6f17d9..b168d30 100644 --- gcc/testsuite/gfortran.dg/dtio_1.f90 +++ gcc/testsuite/gfortran.dg/dtio_1.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! ! Functional test of User Defined Derived Type IO, Formatted WRITE/READ ! diff --git gcc/testsuite/gfortran.dg/dtio_12.f90 gcc/testsuite/gfortran.dg/dtio_12.f90 index 54b10cb..ac6d9e7 100644 --- gcc/testsuite/gfortran.dg/dtio_12.f90 +++ gcc/testsuite/gfortran.dg/dtio_12.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! ! Test the fix for PR77657 in which the DTIO subroutine was not found, ! which led to an error in attempting to link to the abstract interface. diff --git gcc/testsuite/gfortran.dg/fmt_en.f90 gcc/testsuite/gfortran.dg/fmt_en.f90 index b3597e4..89011b3 100644 --- gcc/testsuite/gfortran.dg/fmt_en.f90 +++ gcc/testsuite/gfortran.dg/fmt_en.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! PR60128 Invalid outputs with EN descriptors ! Test case provided by Walt Brainerd. program pr60128 diff --git gcc/testsuite/gfortran.dg/namelist_89.f90 gcc/testsuite/gfortran.dg/namelist_89.f90 index fbb7143..91f64fe 100644 --- gcc/testsuite/gfortran.dg/namelist_89.f90 +++ gcc/testsuite/gfortran.dg/namelist_89.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! PR69456 Namelist value with trailing sign is ignored without error implicit none integer :: ios