This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: PR4082


>> To recap, it makes './configure; make bootstrap' work again and was
>> the change implied by Alex's comments on the situation.  'make check'
>> still reports more errors in libstdc++-v3 (however, none signal real
>> errors).

This nasty dejagnu patch addresses the currently known `make check'
differences in light of different configuration strategies (note that
my workaround code will only kick in when conditions would have been
broken anyways thus I think this is fairly safe to apply even if it is
otherwise broken with remote checking, etc - which it may well be).

With this patch, in-source and out-source configure now seen to have
the same `make check' results on 3.0.X branch.

I know of NO way to do this job properly within TCL exclusively since
'file copy' is broken (at least on some tested platforms and some TCL
versions - I have no idea what the TCL language specification says to
do in this case but seen behavior is quite useless) when working with
a source file that is a relative soft link and the target is in a
directory other than the source file.

If anyone knows a cleaner way to do it, please advise me before I
install this patch on mainline and the 3.0.X branch on Friday.  Yes, I
will add TCL code comment and ChangeLog when I post the final version.

Index: testsuite/lib/libstdc++-v3-dg.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp,v
retrieving revision 1.2.2.6
diff -c -r1.2.2.6 libstdc++-v3-dg.exp
*** libstdc++-v3-dg.exp	2001/08/28 21:19:09	1.2.2.6
--- libstdc++-v3-dg.exp	2001/08/29 22:15:05
***************
*** 39,47 ****
--- 39,55 ----
      # Copy any required data files.
      foreach tst [glob -nocomplain "$srcdir/*/*.tst"] {
  	file copy -force $tst $outdir
+ 	if { [file type $tst] == "link" } {
+ 	    exec rm -f [file join $outdir [file tail $tst]]
+ 	    exec cp $tst $outdir
+ 	}
      }
      foreach txt [glob -nocomplain "$srcdir/*/*.txt"] {
  	file copy -force $txt $outdir
+ 	if { [file type $txt] == "link" } {
+ 	    exec rm -f [file join $outdir [file tail $txt]]
+ 	    exec cp $txt $outdir
+ 	}
      }
  
      # set LD_LIBRARY_PATH so that libgcc_s, libstdc++ binaries can be found.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]