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]
Other format: [Raw text]

Fix testing libstdc++-v3 with multilibs


Hi Guys,

  The current test harness for libstdc++-v3 does not work very well
  when testing ports with multilibs enabled and which also need a
  wrapper file in order to work around limitations in the simulator,
  (eg the arm-elf port.)  The problem is that the wrapper file -
  testglue.o - is only built once per entire run of the tests, not
  once per multilib run, so for example you end up trying to link a
  little-endian built testglue.o with a big-endian built libstdc++-v3
  test object file.

  The patch below fixes this problem by making libstdc++-v3-init
  rebuild the file every time it is called (if a wrapper is needed, of
  course).  Since this function is called once per multilib testing,
  this works.

  May I apply this patch please ?

Cheers
        Nick

2002-05-28  Nick Clifton  <nickc@cambridge.redhat.com>

	* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init):
	Rebuild the wrapper file every time this proc is called.

Index: libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp,v
retrieving revision 1.16
diff -c -3 -p -w -r1.16 libstdc++-v3-dg.exp
*** libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp	9 May 2002 21:01:54 -0000	1.16
--- libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp	28 May 2002 16:25:07 -0000
*************** proc libstdc++-v3-init { args } {
*** 119,125 ****
          }
      }
  
!     if { [target_info needs_status_wrapper]!="" && ![info exists gluefile] } {
        set gluefile ${objdir}/testglue.o;
        set result [build_wrapper $gluefile];
        if { $result != "" } {
--- 119,126 ----
          }
      }
  
!     if { [target_info needs_status_wrapper]!=""} {
!       file delete ${objdir}/testglue.o;
        set gluefile ${objdir}/testglue.o;
        set result [build_wrapper $gluefile];
        if { $result != "" } {


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