From 11f5a9a0fa22f9dd2499dde26a0f55b2f5e306de Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 13 Oct 1998 07:52:27 +0000 Subject: [PATCH] * lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:' From-SVN: r23039 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/lib/old-dejagnu.exp | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 774b13d2a38..33e1c14628d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +1998-10-13 Alexandre Oliva + + * lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:' + 1998-10-12 Alexandre Oliva * 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 95126492e4d..1b28b5acd33 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;