* lib/scanasm.exp (get_ada_spec_filename): Use procedural form.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 15 Dec 2012 19:16:24 +0000 (19:16 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 15 Dec 2012 19:16:24 +0000 (19:16 +0000)
From-SVN: r194524

gcc/testsuite/ChangeLog
gcc/testsuite/lib/scanasm.exp

index 67fa553..0360b7c 100644 (file)
@@ -1,5 +1,9 @@
 2012-12-15  Eric Botcazou  <ebotcazou@adacore.com>
 
+       * lib/scanasm.exp (get_ada_spec_filename): Use procedural form.
+
+2012-12-15  Eric Botcazou  <ebotcazou@adacore.com>
+
        PR ada/52735
        * gnat.dg/nested_generic1.adb: New test.
        * gnat.dg/nested_generic1_pkg.ad[sb]: New helper.
index 598948e..a7d4f43 100644 (file)
@@ -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"]
 }