PATCH: Fix V3 AIX testsuite failures?

Mark Mitchell mark@codesourcery.com
Thu May 5 02:59:00 GMT 2005


This patch is supposed to fix the accidental execution of the thread
tests on AIX.  I've confirmed that it still runs the thread tests on
my local system (which is set up for threads) -- but I'd like to be
sure that it works on AIX before I check it in.  Then, I'll apply the
3.4/4.0 testsuite backport patches and this patch to those branches.
 
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

Index: libstdc++.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/libstdc++.exp,v
retrieving revision 1.38
diff -c -5 -p -r1.38 libstdc++.exp
*** libstdc++.exp	9 Apr 2005 18:50:52 -0000	1.38
--- libstdc++.exp	5 May 2005 02:57:21 -0000
*************** proc v3-build_support {} {
*** 312,332 ****
      set v3-test_objs ""
  
      set config_src "config.cc"
      set f [open $config_src "w"]
      puts $f "#include <bits/c++config.h>"
      close $f
      set preprocessed [v3_target_compile $config_src "" \
  	    	       preprocess "additional_flags=-dN"]
!     foreach l $preprocessed {
! 	if { [string first "_GLIBCXX_USE_WCHAR_T" $l] != -1 } {
! 	    verbose -log "wchar_t support detected"
! 	    set v3-wchar_t 1
! 	} elseif { [string first "_GLIBCXX_HAVE_GTHR_DEFAULT" $l] != -1 } {
! 	    verbose -log "thread support detected"
! 	    set v3-threads 1
! 	}
      }
  
      # Build the support objects.
      set source_files \
  	[list testsuite_abi.cc testsuite_allocator.cc testsuite_character.cc testsuite_hooks.cc]
--- 312,332 ----
      set v3-test_objs ""
  
      set config_src "config.cc"
      set f [open $config_src "w"]
      puts $f "#include <bits/c++config.h>"
+     puts $f "#include <bits/gthr.h>"
      close $f
      set preprocessed [v3_target_compile $config_src "" \
  	    	       preprocess "additional_flags=-dN"]
!     if { [string first "_GLIBCXX_USE_WCHAR_T" $preprocessed] != -1 } {
! 	verbose -log "wchar_t support detected"
! 	set v3-wchar_t 1
!     }
!     if { [string first "__GTHREADS" $preprocessed] != -1 } {
! 	verbose -log "thread support detected"
! 	set v3-threads 1
      }
  
      # Build the support objects.
      set source_files \
  	[list testsuite_abi.cc testsuite_allocator.cc testsuite_character.cc testsuite_hooks.cc]



More information about the Libstdc++ mailing list