From patchwork Sat Jan 13 18:11:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 187926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp884218dyc; Sat, 13 Jan 2024 10:13:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFuo25AWy8hIR2BWGSdjymiXfJEoGod2dCbXAD+KVG+gziFPuaJwoFxb3wjGMWGz+/+5Iwd X-Received: by 2002:a05:622a:e:b0:429:ba5c:820a with SMTP id x14-20020a05622a000e00b00429ba5c820amr4185962qtw.29.1705169579643; Sat, 13 Jan 2024 10:12:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705169579; cv=pass; d=google.com; s=arc-20160816; b=s9fwOK4Th3Kr+J5vTmpttU1HjGivzYJaSWjzIdKAmlvjzvMnHVFSbgqFBrm+jEFBHj 5pGMTLxMiPQBcHZ8DOtFZpb120V4XWoj894/ogMUByX/uPTru+l8SXKyd5W+Hgb9VZu5 0hMZArEauEKd1gzOWLHmLExc2rdYpnuGS9hXFbBXyhIPqR8j/iTbFL6J5zXwJO7g/wCf uzB82VcPpHo75QMpdV1WKzHzVMzrASddbUmWEbKOWDgYQC4NP/tRKcE3MH8ltbX+iGO9 uODiE0Opgx83n3zNbN6oyp2ODEZmMNbRzIexy4a5CuRGz9VQSIy91DcnXbiuhhpmMZdq xtkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=OLKWo+6hVdROj5gSsvaqhQCqNTdaqMtuNtog9U8Hmr8=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=tW8hRN4RxL5c7kbZ5YCIDjOwYp4RWMr3NXygnFAvWnkjAtXs48x87moWhKMiak3vX1 XYfCb3tgoNXodpSf3p3YrzOYqA7fWoPI5+BDa9nfjpMgNwuI/acQ5jQLx0V4aXgpD7pO 2hklA3auG+sP7kRu8M7AGyZNuJnIh39j0X+gAHoG3wTncChMqbZyNC/4Vi6flzwXAEPq XMYiWSEYQuNTJgy4RECuizk2OYPeNrP8scRxBmBRgy/N2xvF0DI6FhzFRJbjYNSo0wrs Ucv1Gbmijim1lX/MGUGqUxD5AQjTB9FaE8+YRahnd+zhYwbRT2ITq/348gg1dqEdPSIT 6uFQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id b13-20020ac87fcd000000b004297cd121afsi5306412qtk.350.2024.01.13.10.12.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 10:12:59 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5BE683858C74 for ; Sat, 13 Jan 2024 18:12:59 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id B18B13858D1E for ; Sat, 13 Jan 2024 18:12:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B18B13858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B18B13858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:c207:3003:236::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705169539; cv=none; b=cP86TsT64B2oIanfNOwrH/7jElVxvFGPhuncFOJ5RUexpdJMvnzvSAOdpTnl71RDDJMqDoOOhu0/jVmhvF5FBrSJZz1vN1QUCbBE16DRM/EvsPGZH5FmOk2rMxPUn4FtCP5raQNZhvwTs83+Te2EhT+YzQk169+ExogoZrhieAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705169539; c=relaxed/simple; bh=z8UA0vpuAEYCiQyH0RaUfqqd+Ckcb/L9f840dEsBhW4=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=wcz9YvfAKVRzMObtbetGitOeFhweehIflZlb5hQUyZ7f07a379VfDbqGwUlq6cWfYz6tO8FU0pnRW6t+kRcWqk4FAgDXICQ4zt7gqQZVC6Zkhvwurse+MDIzeqmmntV4BSoiohlUFNj+ug3Dl/kHVRL4dLs38zJNFy/NlO2WSx0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 1EB8A16003B6; Sat, 13 Jan 2024 19:12:16 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id E54A022011C; Sat, 13 Jan 2024 18:11:58 +0000 (UTC) Date: Sat, 13 Jan 2024 18:11:58 +0000 From: John David Anglin To: GCC Patches Subject: [committed] hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787999897094193572 X-GMAIL-MSGID: 1787999897094193572 Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90 The hppa*64*-*-hpux* target is not included in the set of fortran_real_16 targets because it doesn't have cosl. However, these tests don't need cosl, etc. 2024-01-13 John David Anglin gcc/testsuite/ChangeLog: * gfortran.dg/fmt_f_default_field_width_3.f90: Add hppa*64*-*-hpux* to real_16 dg-error targets. * gfortran.dg/fmt_g_default_field_width_3.f90: Likewise. diff --git a/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90 b/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90 index 3e7d8f64d43..46f271e0c60 100644 --- a/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90 +++ b/gcc/testsuite/gfortran.dg/fmt_f_default_field_width_3.f90 @@ -30,6 +30,6 @@ program test #ifdef __GFC_REAL_16__ real_16 = 4.18 - write(buffer, fmt) ':',real_16,':' ! { dg-error "Nonnegative width required" "" { target fortran_real_16 } } + write(buffer, fmt) ':',real_16,':' ! { dg-error "Nonnegative width required" "" { target { fortran_real_16 || { hppa*64*-*-hpux* } } } } #endif end diff --git a/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90 b/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90 index 95a05981941..22fe1a35d65 100644 --- a/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90 +++ b/gcc/testsuite/gfortran.dg/fmt_g_default_field_width_3.f90 @@ -33,6 +33,6 @@ program test #ifdef __GFC_REAL_16__ real_16 = 4.18 - write(buffer, fmt) ':',real_16,':' ! { dg-error "Positive width required" "" { target fortran_real_16 } } + write(buffer, fmt) ':',real_16,':' ! { dg-error "Positive width required" "" { target { fortran_real_16 || { hppa*64*-*-hpux* } } } } #endif end