From patchwork Wed Jan 3 10:07:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 854931 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-470036-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Ub+VEgxV"; 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 3zBRSR46Spz9s7G for ; Wed, 3 Jan 2018 21:07:32 +1100 (AEDT) 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:reply-to:mime-version :content-type; q=dns; s=default; b=lXXXlOw8teMVHVaAp6xowqxD4JNc2 Dca8J4x0Wf7GiWK3lnVRPy8qLyCEX7kzdUP6l60EJqyJT1L5NR4UPIaBDWp+pWOn DmcAO43TZvG0FqJUn042yUIVafEO599jpdtjKCm0lcnm9O+BmKyRT5kSoqx/TvR6 8gJrucDR2HdazY= 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:reply-to:mime-version :content-type; s=default; bh=J5itQryqPbmm6ERjt4s3R8Wj1eQ=; b=Ub+ VEgxVBEceaBY4K+i0A3d7AZc3fosnx1+tEkxhK1INfY3UnBXqGmYDWKoPZKzYvOi 2PWCxgtUYZPXlGx1E8ffNn0u6RPPZbiyYoSpqb1Mjdd0wTTUW7i86GULXMpJMyCV ggZa25csETRRrofyjBlNCoKNjHhX9f7nLcbp598A= Received: (qmail 15726 invoked by alias); 3 Jan 2018 10:07:22 -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 15708 invoked by uid 89); 3 Jan 2018 10:07:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=BUT, proprietary, intellectual, Third X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Jan 2018 10:07:20 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4AC256A7D5; Wed, 3 Jan 2018 10:07:19 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-90.ams2.redhat.com [10.36.116.90]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E7707649A5; Wed, 3 Jan 2018 10:07:18 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id w03A7GJe007424; Wed, 3 Jan 2018 11:07:16 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id w03A7Fbq007423; Wed, 3 Jan 2018 11:07:15 +0100 Date: Wed, 3 Jan 2018 11:07:15 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org, Jeff Law Cc: Paul Thomas Subject: [committed] Tweak update-copyright.py so that it doesn't fail on pdt_5.f03 Message-ID: <20180103100715.GB1833@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-IsSubscribed: yes Hi! This testcase contains: ! Third, complete example from the PGInsider article: ! "Object-Oriented Programming in Fortran 2003 Part 3: Parameterized Derived Types" ! by Mark Leair ! ! Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. ! ! NVIDIA CORPORATION and its licensors retain all intellectual property ! and proprietary rights in and to this software, related documentation ! and any modifications thereto. Any use, reproduction, disclosure or ! distribution of this software and related documentation without an express ! license agreement from NVIDIA CORPORATION is strictly prohibited. ! ! THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT ! WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT ! NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR ! FITNESS FOR A PARTICULAR PURPOSE. ! ! Note that modification had to be made all of which are commented. which makes me wonder if it shouldn't be removed. So that I could update the copyright years, I've committed following workaround for that, but if the testcase is removed or rewritten that can go away as well. 2018-01-03 Jakub Jelinek * update-copyright.py: Skip pdt-5.f03 in gfortran.dg subdir. Jakub --- contrib/update-copyright.py (revision 256167) +++ contrib/update-copyright.py (revision 256168) @@ -591,6 +591,8 @@ class TestsuiteFilter (GenericFilter): # Similarly params/README. if filename == 'README' and os.path.basename (dir) == 'params': return True + if filename == 'pdt_5.f03' and os.path.basename (dir) == 'gfortran.dg': + return True return GenericFilter.skip_file (self, dir, filename) class LibCppFilter (GenericFilter):