From patchwork Sat Dec 15 19:13:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 206633 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 9855C2C0086 for ; Sun, 16 Dec 2012 06:16:45 +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=1356203806; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=zquFOFltlEdjbCSPHKOa/BsOfrs=; b=kD/k28AZEY43CsH 5NOWvkODjryatxy8sOBgGNJMmZLvjjGYRwNBMvks6xS6TzAUujrX7x4Q2rcMX7JL TlcQYvyu3Z+fUN4/6dSaLWVCUFqNIUd2JsGG+p4k0Rhxqzh1bMPMLJtTIN87vxjm J1tuIyizsQDMHUoB2OiF16xaD/W0= 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:Received:Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=rQIHBRiVhzX6adaSgX04Wjfw4VFY0zYvQ/TMxZ7kukWm/nuYjhkicC9oh9Z3fY /CNeGHzpxCx+j0PBkRJM2I0NfXSNV+uWxyCuWptTxC6R+mk1e3OLv8RaNDhVpxL+ KC3D8iin7c8rDLleCArS5YzlO9DNvDoO4cJR5aMRbpoWU=; Received: (qmail 12805 invoked by alias); 15 Dec 2012 19:16:41 -0000 Received: (qmail 12796 invoked by uid 22791); 15 Dec 2012 19:16:40 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Dec 2012 19:16:33 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id DFDC3290041 for ; Sat, 15 Dec 2012 20:16:38 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bTYorIgfoCIr for ; Sat, 15 Dec 2012 20:16:38 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id ABAAE290034 for ; Sat, 15 Dec 2012 20:16:38 +0100 (CET) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [testsuite] Minor tweak to get_ada_spec_filename Date: Sat, 15 Dec 2012 20:13:20 +0100 Message-ID: <1464273.LzFIuxN6H4@polaris> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.16-desktop; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 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 This changes get_ada_spec_filename to use the procedural form of regsub instead of the functional form, which is apparently not supported on older versions of DejaGNU. Tested on x86_64-suse-linux, applied on the mainline as obvious. 2012-12-15 Eric Botcazou * lib/scanasm.exp (get_ada_spec_filename): Use procedural form. Index: lib/scanasm.exp =================================================================== --- lib/scanasm.exp (revision 194517) +++ lib/scanasm.exp (working copy) @@ -191,7 +191,7 @@ proc get_ada_spec_filename { testcase } set filename [lindex $testcase 0] set tailname [file tail $filename] set extension [string trimleft [file extension $tailname] {.}] - set rootname [regsub -all {\-} [file rootname $tailname] {_}] + regsub -all {\-} [file rootname $tailname] {_} rootname return [string tolower "${rootname}_${extension}.ads"] }