From patchwork Wed Jan 9 19:15:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 210824 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 832F52C00D6 for ; Thu, 10 Jan 2013 06:16:09 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1358363769; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=eDFn39d 0n/POWTNxs8BGW4N92Hw=; b=BtLAuK3WoUCLEbCxP3VtsnrzV9rhwLMkzoH2jvX Ejo6LOm69XAQElGdGePDV65TJ/CprBRMhlhC3JEhaePA8YQltrVMbkqbwc7qqn7u MBFZqGPQlBr+vpAeGqYAXNI3AlMwgh8SJCghzW/8VfMX+mYQKOavIyTaCoE/1yiT NojA= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=ORBiO91DJegTv7HDHeLBx86hRtTZvTYGQxM4TP6408vaI32DtNb2Ei/sT9A68c 86W2bNiLTeyGdjoXAgzJBQCKp5KEDmdKmMak/HL3xrVNcOWeNW+8Zbrkd0st3TEy oCd61Bd6TdMqSlRShuaBlQR5yJo67Y5m+YeW4Qhuz9jcE=; Received: (qmail 2781 invoked by alias); 9 Jan 2013 19:15:36 -0000 Received: (qmail 2753 invoked by uid 22791); 9 Jan 2013 19:15:34 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-ob0-f180.google.com (HELO mail-ob0-f180.google.com) (209.85.214.180) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Jan 2013 19:15:24 +0000 Received: by mail-ob0-f180.google.com with SMTP id wd20so2512172obb.25 for ; Wed, 09 Jan 2013 11:15:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.31.51 with SMTP id x19mr38535514oeh.25.1357758923739; Wed, 09 Jan 2013 11:15:23 -0800 (PST) Received: by 10.182.153.201 with HTTP; Wed, 9 Jan 2013 11:15:23 -0800 (PST) Date: Wed, 9 Jan 2013 20:15:23 +0100 Message-ID: Subject: [PATCH, testsuite]: Fix scan string of gfortran.dg/intrinsic_size_3.f90 From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: Fortran List 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 Hello! The regexp in the scan string assumes that dumped temporaries have exactly 4 numbers. Sometimes, this is not the case. Attached patch fixes scan string to match a number with arbitrary number of places instead. 2012-01-09 Uros Bizjak * gfortran.dg/intrinsic_size_3.f90: Make scan-tree-dump-times number matching more robust. Tested on x86_64-pc-linux-gnu and alphaev68-linux-gnu, where it fixes spurious test failure. OK for mainline? Uros. Index: gfortran.dg/intrinsic_size_3.f90 =================================================================== --- gfortran.dg/intrinsic_size_3.f90 (revision 195057) +++ gfortran.dg/intrinsic_size_3.f90 (working copy) @@ -22,5 +22,5 @@ stop end program bug -! { dg-final { scan-tree-dump-times "iszs = \\(integer\\(kind=2\\)\\) MAX_EXPR <\\(D.....->dim.0..ubound - D.....->dim.0..lbound\\) \\+ 1, 0>;" 1 "original" } } +! { dg-final { scan-tree-dump-times "iszs = \\(integer\\(kind=2\\)\\) MAX_EXPR <\\(D.\[0-9\]+->dim.0..ubound - D.\[0-9\]+->dim.0..lbound\\) \\+ 1, 0>;" 1 "original" } } ! { dg-final { cleanup-tree-dump "original" } }