From patchwork Sat Jan 21 03:21:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerry DeLisle X-Patchwork-Id: 46758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp550847wrn; Fri, 20 Jan 2023 19:22:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvjJdKcnWlGGN2/t9JeWP80FP1ehJlPm23frEaRZuH83dTdwM4yUEF1KYvOH/RAQEzwPLSq X-Received: by 2002:a17:906:4d16:b0:86d:d06f:b403 with SMTP id r22-20020a1709064d1600b0086dd06fb403mr16873974eju.67.1674271360997; Fri, 20 Jan 2023 19:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674271360; cv=none; d=google.com; s=arc-20160816; b=yzwF8cZEqWmVcCLDa/RKVdn0dw6bbtNsf2vdMoNHOygzoC3hBemgy6rxD5RckcZ88J tTFhJ0uWOG9dzbYdhrU6xOE3300y6DQYbG7z0OApPb2+ybnavU8SL6v6ssSGI2cq6vgk 1uQusa171Y18zW7egt8t11AT5PVZ2iLAugNvTFUfzyehxLeh8ZFmpDXY67eqhgVc/Lgr oQECkjF5V0mLbPdAsQVuqo1m6OPrCXajcf+Q4rp/O0qIbnBVCi4i11zTC4tdP7yixuFR S1GwQL6KAYkTJ2kRCDWhsUQUQENX2ZP2AglmYFT0/49EvKYvGKdC4FQat8wBmhJGPQRb mLDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :feedback-id:message-id:subject:cc:to:date:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=fQzhjNl27P/N75DWE0XgBFvcbGf0qERxStRbDMIfP7M=; b=QcZRrnVFKhUDVTTl2qxk9/LBfLcY2pIPtL70Yj9WOikmds6e47jzf0+M7KWn9+70TX y2o3ribf7YqZcecNEeCSgW98hBWCR77Ws1U9Dv9Ro9sh9k7mmrSn0w0du5UI98FPwC2n C+HeYPC1+4S40heVCrG4DY9bL71ZNTpgUSdsCIHJ+UUN3SeoMJmRi//MrJ9LKyV5va4E VPvAsyIrF2BIWwzpn1jRk2H6qMe3sQX4dAu6oUvR0TCRoT1T9Li9IfaCDAfCufb3A7dI 7WQ+5Ut+l83byWRcCJjHKX4rnnKcyO6gaP9hpXghwe84Cpg/1sQiRLf5fV7t07yKtHIT lBPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=cCDbRBYh; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hc41-20020a17090716a900b007c0dcc62e49si23113708ejc.56.2023.01.20.19.22.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 19:22:40 -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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=cCDbRBYh; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 123AE3858416 for ; Sat, 21 Jan 2023 03:22:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 123AE3858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674271360; bh=fQzhjNl27P/N75DWE0XgBFvcbGf0qERxStRbDMIfP7M=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=cCDbRBYh712P+LJigWKjTJnqIIb2eck6z/HEXdisb4iQAcbO+vVbAayG2vddHed2b dQLV7fEzsJflM7Eginj++cZPXKkc12UONLmRhlVwsC7brDYOKAVuLVTHo9wUvJ1pV8 FitXbeoojXgOVcGgjBdKHAEex3dNH/jXaXFet9ZQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) by sourceware.org (Postfix) with ESMTPS id 9FC163858D20; Sat, 21 Jan 2023 03:21:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9FC163858D20 Date: Sat, 21 Jan 2023 03:21:27 +0000 To: gfortran Cc: gcc-patches Subject: [patch, gfortran.dg] Allow test to pass on mingw Message-ID: Feedback-ID: 34907122:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jerry DeLisle via Gcc-patches From: Jerry DeLisle Reply-To: Jerry DeLisle Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755600766524768531?= X-GMAIL-MSGID: =?utf-8?q?1755600766524768531?= Hi all, Similar to a patch I committed a while ago for Cygwin, the attached patch allows it to pass on the mingw version of gfortran. It is trivial. Ok for trunk? Regards, Jerry diff --git a/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 b/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 index 8dd7e8fb088..04faa433435 100644 --- a/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 +++ b/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 @@ -16,9 +16,9 @@ integer :: aa(4,4) call test(aa) end -! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* amdgcn*-*-* powerpc-ibm-aix*} } } } } +! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* amdgcn*-*-* powerpc-ibm-aix* *-*-ming* } } } } } ! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target { hppa*-*-* } } } } -! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* } } } } +! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* *-*-ming* } } } } ! { dg-final { scan-assembler-times "brasl\t%r\[0-9\]*,myBindC" 1 { target { s390*-*-* } } } } ! { dg-final { scan-assembler-times "bl \.myBindC" 1 { target { powerpc-ibm-aix* } } } } ! { dg-final { scan-assembler-times "add_u32\t\[sv\]\[0-9\]*, \[sv\]\[0-9\]*, myBindC@rel32@lo" 1 { target { amdgcn*-*-* } } } }