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]

[v3] typeinfo includes


This is a speculative patch that may fix up some new fails on Solaris,
based on a log file that Bradley Lucier sent me in private email. I
believe this issue is also visible on AIX, but I don't see it on
linux.

tested x86/linux

2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/testsuite_flags.in (--build-includes): Remove extraneous
	paths for libio and backwards.
	* testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
	(test03): Include typeinfo for bad_cast.
	* testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
	* testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
	* testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.

Index: scripts/testsuite_flags.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/scripts/testsuite_flags.in,v
retrieving revision 1.2
diff -c -p -r1.2 testsuite_flags.in
*** scripts/testsuite_flags.in	5 Jul 2003 04:05:41 -0000	1.2
--- scripts/testsuite_flags.in	21 Jul 2003 20:58:35 -0000
*************** case ${query} in
*** 33,41 ****
        ;;
      --build-includes)
        INCLUDES="-nostdinc++ @GLIBCXX_INCLUDES@
! 	        -I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio 
! 		-I${SRC_DIR}/include/backward 
! 		-I${SRC_DIR}/testsuite"
        echo ${INCLUDES}
        ;;
      --install-cxx)
--- 33,39 ----
        ;;
      --build-includes)
        INCLUDES="-nostdinc++ @GLIBCXX_INCLUDES@
! 	        -I${SRC_DIR}/libsupc++ -I${SRC_DIR}/testsuite"
        echo ${INCLUDES}
        ;;
      --install-cxx)
Index: testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc,v
retrieving revision 1.5
diff -c -p -r1.5 3983-fstream.cc
*** testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc	22 May 2003 22:16:41 -0000	1.5
--- testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc	21 Jul 2003 20:58:38 -0000
***************
*** 30,35 ****
--- 30,36 ----
  // 27.4.2.1.6 class ios_base::init
  
  #include <fstream>
+ #include <typeinfo>
  #include <testsuite_hooks.h>
  
  // char_traits specialization
Index: testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc,v
retrieving revision 1.1
diff -c -p -r1.1 3983-sstream.cc
*** testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc	10 Apr 2003 07:15:32 -0000	1.1
--- testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc	21 Jul 2003 20:58:38 -0000
***************
*** 30,35 ****
--- 30,36 ----
  // 27.4.2.1.6 class ios_base::init
  
  #include <sstream>
+ #include <typeinfo>
  #include <testsuite_hooks.h>
  
  // char_traits specialization
Index: testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc,v
retrieving revision 1.5
diff -c -p -r1.5 3983-fstream.cc
*** testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc	22 May 2003 22:16:41 -0000	1.5
--- testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc	21 Jul 2003 20:58:38 -0000
***************
*** 30,35 ****
--- 30,36 ----
  // 27.4.2.1.6 class ios_base::init
  
  #include <fstream>
+ #include <typeinfo>
  #include <testsuite_hooks.h>
  
  // char_traits specialization
Index: testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc,v
retrieving revision 1.1
diff -c -p -r1.1 3983-sstream.cc
*** testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc	10 Apr 2003 07:15:34 -0000	1.1
--- testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc	21 Jul 2003 20:58:38 -0000
***************
*** 30,35 ****
--- 30,36 ----
  // 27.4.2.1.6 class ios_base::init
  
  #include <sstream>
+ #include <typeinfo>
  #include <testsuite_hooks.h>
  
  // char_traits specialization


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