aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-10-13 07:52:27 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-10-13 07:52:27 +0000
commit11f5a9a0fa22f9dd2499dde26a0f55b2f5e306de (patch)
treef9617f3bf6c23b82f9edcaad0e8bd15084c1296e /gcc
parent5ca2111fc269899dcd8d5c6342a64bd0a6ef0414 (diff)
downloadgcc-11f5a9a0fa22f9dd2499dde26a0f55b2f5e306de.zip
gcc-11f5a9a0fa22f9dd2499dde26a0f55b2f5e306de.tar.gz
gcc-11f5a9a0fa22f9dd2499dde26a0f55b2f5e306de.tar.bz2
* lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:'
From-SVN: r23039
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/lib/old-dejagnu.exp10
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 774b13d..33e1c14 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+1998-10-13 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:'
+
1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.pt/explicit74.C: New test. Explicit
diff --git a/gcc/testsuite/lib/old-dejagnu.exp b/gcc/testsuite/lib/old-dejagnu.exp
index 9512649..1b28b5a 100644
--- a/gcc/testsuite/lib/old-dejagnu.exp
+++ b/gcc/testsuite/lib/old-dejagnu.exp
@@ -225,6 +225,16 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
lappend cflags "additional_flags=$cflagsx"
}
+ set tmp [lindex [grep $prog "Additional sources: .*"] 0]
+ regsub -all "\n\[^\n\]+(\n|$)" $tmp "\n" tmp
+ set tmp [string trim $tmp]
+ if ![string match "" $tmp] then {
+ regsub "^.*Additional.*sources:" $tmp "" tmp
+ regsub -all " " $tmp " [file dirname $prog]/" tmp
+ lappend cflags "additional_flags=$tmp"
+ verbose "Adding sources $tmp"
+ }
+
lappend cflags "compiler=$compiler"
regsub -all "\[./\]" "$name" "-" output;