From patchwork Thu May 3 07:32:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 907872 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-477157-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="cYIDQLsX"; 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 40c6LR1Wkfz9s37 for ; Thu, 3 May 2018 17:32:47 +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 :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=u2vDyroyu3kWnFVRutZG4lsJxNiYuRKgbTw5+ZuOq7WncOAz4G 3pWZwYRvM+ErKrAUpbs4MGEzbdJhNNmDXmbIfQ7qu2TXyV7rP3aeNtltxc/QISM2 wfHZPQnwfKoskXAFr48Wwio3Scby+wobYWtQ1Ho12u+7glnZYLvc0At3w= 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:cc:subject:message-id:mime-version:content-type; s= default; bh=SusL08VAsLJ9SoXYIRbR02tPCz4=; b=cYIDQLsXW4QN+ROV447y cEBEDpGUdbiKJCkObxmSqPKYrk9Xq071uxLqJHekI7z0eZcHukFv9+hWm2Auk9v9 Lczw/8C+JprTGVFCq3j9sItoe6hJpUI2Y2bNBiB7OwtErjpjvCEzzRS3ynbQ4M36 Axzq9SzqNbhAT+DzUBrRqpE= Received: (qmail 35061 invoked by alias); 3 May 2018 07:32:36 -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 35036 invoked by uid 89); 3 May 2018 07:32:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:820, transfer X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 May 2018 07:32:34 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 38BD2ABE0; Thu, 3 May 2018 07:32:32 +0000 (UTC) Date: Thu, 3 May 2018 09:32:32 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org cc: fortran@gcc.gnu.org Subject: [PATCH] Fix gfortran.dg/pr51434.f90 testcase Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 As noted in the bug the testcase is bogus. The following should hopefully fix the observed runtime failures on powerpc and arm. I've changed the bug to a FE accepts-invalid one. Committed. Richard. 2018-05-03 Richard Biener PR testsuite/85579 * fortran.dg/pr51434.f90: Truncate transfer argument. Index: gcc/testsuite/gfortran.dg/pr51434.f90 =================================================================== --- gcc/testsuite/gfortran.dg/pr51434.f90 (revision 259879) +++ gcc/testsuite/gfortran.dg/pr51434.f90 (working copy) @@ -6,7 +6,7 @@ module foo character(len=1), parameter :: s(n) = 'a' type :: a integer :: m = n - character(len=1):: t(n) = transfer('abcde ', s) + character(len=1):: t(n) = transfer('abcde', s) end type a end module foo