Fix simulator needs_status_wrapper/testglue usage without dejagnu-1.4.4 patches
Richard Earnshaw
Richard.Earnshaw@buzzard.freeserve.co.uk
Thu Oct 7 22:16:00 GMT 2004
This worked ok, so I've committed it.
R.
On Thu, 07 Oct 2004 00:53:32 BST, Richard Earnshaw wrote:
>
> > 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.
More information about the Gcc-patches
mailing list