This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix simulator needs_status_wrapper/testglue usage without dejagnu-1.4.4 patches
- From: Richard Earnshaw <rearnsha at buzzard dot freeserve dot co dot uk>
- To: Richard Earnshaw <rearnsha at buzzard dot freeserve dot co dot uk>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, Richard dot Earnshaw at buzzard dot freeserve dot co dot uk, gcc-patches at gcc dot gnu dot org, rearnsha at buzzard dot freeserve dot co dot uk
- Date: Thu, 07 Oct 2004 00:53:32 +0100
- Subject: Re: Fix simulator needs_status_wrapper/testglue usage without dejagnu-1.4.4 patches
> Anyway, I think I've found the problem, libstdc++.exp was missing a
> libstdc++_exit proc, so the testglue file wasn't being cleaned up (in gcc
> this is provided in gcc-defs.exp, but that's not used outside of the gcc
> subtree). I'm currently testing a patch that adds such a function. I'll
> let you know how it goes.
This is the patch I'm testing. It seems to work, but I'll let a full
build-and-test run overnight.
R.
* testsuite/lib/libstdc++.lib (libstdc++_exit): New proc.
Index: libstdc++.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/libstdc++.exp,v
retrieving revision 1.24
diff -p -p -r1.24 libstdc++.exp
*** libstdc++.exp 24 Sep 2004 16:51:09 -0000 1.24
--- libstdc++.exp 6 Oct 2004 23:50:06 -0000
*************** proc libstdc++_init { testfile } {
*** 212,217 ****
--- 212,226 ----
libstdc++_maybe_build_wrapper "${objdir}/testglue.o"
}
+ proc libstdc++_exit { } {
+ global gluefile;
+
+ if [info exists gluefile] {
+ file_on_build delete $gluefile;
+ unset gluefile;
+ }
+ }
+
# Callback from system dg-test.
proc libstdc++-dg-test { prog do_what extra_tool_flags } {
# Set up the compiler flags, based on what we're going to do.