From: Mark Mitchell Date: Thu, 26 Oct 2000 23:17:35 +0000 (+0000) Subject: label2.C: Tweak to work with V3. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=140c3b7e9f577f8b01f6fbf8520dc53df97bfe59;p=platform%2Fupstream%2Fgcc.git label2.C: Tweak to work with V3. * g++.old-deja/g++.brendan/label2.C: Tweak to work with V3. * g++.old-deja/g++.law/builtin1.C: Likewise. * g++.old-deja/g++.law/ctors10.C: Likewise. * g++.old-deja/g++.law/virtual3.C: Likewise. * g++.old-deja/g++.mike/p658.C: Likewise. * g++.old-deja/g++.other/sibcall1.C: Likewise. * g++.old-deja/g++.other/vaarg2.C: Likewise. * g++.old-deja/g++.robertl/eb124.C: Likewise. * g++.old-deja/g++.robertl/eb44.C: Likewise. * g++.old-deja/g++.robertl/eb77.C: Likewise. * include/backward/streambuf.h: New file. From-SVN: r37077 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c714459..65d5ae8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2000-10-26 Mark Mitchell + + * g++.old-deja/g++.brendan/label2.C: Tweak to work with V3. + * g++.old-deja/g++.law/builtin1.C: Likewise. + * g++.old-deja/g++.law/ctors10.C: Likewise. + * g++.old-deja/g++.law/virtual3.C: Likewise. + * g++.old-deja/g++.mike/p658.C: Likewise. + * g++.old-deja/g++.other/sibcall1.C: Likewise. + * g++.old-deja/g++.other/vaarg2.C: Likewise. + * g++.old-deja/g++.robertl/eb124.C: Likewise. + * g++.old-deja/g++.robertl/eb44.C: Likewise. + * g++.old-deja/g++.robertl/eb77.C: Likewise. + 2000-10-26 Nathan Sidwell * gcc.c-torture/compile/20001024-1.c: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/label2.C b/gcc/testsuite/g++.old-deja/g++.brendan/label2.C index bce2112..5abdb15 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/label2.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/label2.C @@ -1,5 +1,8 @@ // Build don't link: // GROUPS passed labels + +extern "C" void abort(); + class X { public: X(); diff --git a/gcc/testsuite/g++.old-deja/g++.law/builtin1.C b/gcc/testsuite/g++.old-deja/g++.law/builtin1.C index e9b4654..86a91e7 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/builtin1.C +++ b/gcc/testsuite/g++.old-deja/g++.law/builtin1.C @@ -12,6 +12,6 @@ extern "C" void* alloca( __SIZE_TYPE__ ); extern "C" int printf (const char *, ...); void* junk() { - return alloca(10); + return std::alloca(10); } main() { printf ("PASS\n");} diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors10.C b/gcc/testsuite/g++.old-deja/g++.law/ctors10.C index 213b798..6520087 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/ctors10.C +++ b/gcc/testsuite/g++.old-deja/g++.law/ctors10.C @@ -13,7 +13,7 @@ class Class class Err : public ostream { public: - Err(void) : ostream() { } + Err(void) : ostream(NULL) { } ~Err(void) { } }; public: diff --git a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C b/gcc/testsuite/g++.old-deja/g++.law/virtual3.C index d131da4..92e7db8 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C +++ b/gcc/testsuite/g++.old-deja/g++.law/virtual3.C @@ -29,7 +29,7 @@ BugStream& BugStream::eval() cerr << s << endl; // reset the stream for the next command - clear(0); + clear(ios::goodbit); rdbuf()->freeze(0); seekp(0); diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p658.C b/gcc/testsuite/g++.old-deja/g++.mike/p658.C index 14658f0..842ae8b 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p658.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p658.C @@ -1,8 +1,7 @@ // prms-id: 658 #include - -extern "C" void abort(); +#include /* We may not find the libg++ . */ #ifndef FALSE diff --git a/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C index 8add4b8..99a1dc1 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C +++ b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C @@ -1,6 +1,6 @@ // Special g++ Options: -O2 -#include +#include ostream& foo (char *x, ostream &y) { diff --git a/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C b/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C index aca5e21..fe1fa7e 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C +++ b/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C @@ -1,10 +1,10 @@ -// Copyright (C) 1999 Free Software Foundation, Inc. +// Copyright (C) 1999, 2000 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 4 Oct 1999 // Make sure we can deal with POD aggregate in va_args #include -extern void abort (); +extern "C" void abort (); struct X {int m;}; struct Y {int a; int b; int c; int d; int e; int f;}; diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C index c9c7395..92fa872 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C @@ -1,3 +1,5 @@ //Build don't link: #include -class X : public std::runtime_error {}; +class X : public std::runtime_error { + X (); +}; diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C index b02b9aa..04ff13d 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C @@ -31,6 +31,5 @@ ostream& operator<< (ostream& out, const Vector&) int main() { Vector vc; - ostream out; - out << vc; + cout << vc; } diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C index 206b27d..d37b3ea 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C @@ -12,8 +12,8 @@ main(int, char* []) int nLine = 0; while( true ) { - char* line = 0; - s.gets(&line); + char line[100]; + s.get(line, 100); if( ! line ) { break; diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 85e4fca..70528d8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2000-10-26 Mark Mitchell + + * include/backward/streambuf.h: New file. + 2000-10-26 David Edelsohn * config/os/aix/bits/ctype_inline.h (is): Use __OBJ_DATA directly. @@ -144,6 +148,43 @@ * include/c_std/bits/std_cstdlib.h: abort, exit comment. * include/c_std/stdlib.h: Same here. +2000-10-23 Benjamin Kosnik + + * testsuite/21_strings/compare.cc (test01): Add using declarations. + + * include/c_std/bits/std_cerrno.h: And here. + * include/c_std/bits/std_cassert.h: Tweaks. + + * mkcheck.in: Simplify. + + * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Simplify. + (GLIBCPP_ENABLE_LONG_LONG): Same. + * aclocal.m4: Regenerate. + + * src/Makefile.am (c_shadow_headers): Add features.h, + bits/wrap_features.h. + * src/Makefile.in: Regenerate. + * include/c_std/features.h: New file. + * include/c_std/bits/wrap_features.h (_CPP_WRAP_FEATURES_H): New + file. Need to have c++config.h included before this file so + _ISOC99_SOURCE around. + + * include/c_std/sys/cdefs.h: Hack. + * include/c_std/stdlib.h: Same, use c++config.h. + * include/c_std/bits/std_cstdlib.h: Use _GLIBCPP_HAVE_STRTOLD. + + * include/c_std/bits/std_cassert.h: Fix. + * include/c_std/bits/std_cerrno.h: Make consistent. + + * include/c_std/bits/std_csetjmp.h (setjmp): Unscope global + declaration from ::_C_legacy to _C_legacy. + + * include/c_std/bits/std_cstdio.h: same with printf. + * include/c_std/stdio.h: And here. + + * include/c_std/bits/std_cstdlib.h: abort, exit comment. + * include/c_std/stdlib.h: Same here. + 2000-10-21 Benjamin Kosnik * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro. diff --git a/libstdc++-v3/include/backward/streambuf.h b/libstdc++-v3/include/backward/streambuf.h new file mode 100644 index 0000000..9bb7646 --- /dev/null +++ b/libstdc++-v3/include/backward/streambuf.h @@ -0,0 +1,42 @@ + +// Copyright (C) 2000 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 2, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING. If not, write to the Free +// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, +// USA. + +// As a special exception, you may use this file as part of a free software +// library without restriction. Specifically, if other files instantiate +// templates or use macros or inline functions from this file, or you compile +// this file and link it with other files to produce an executable, this +// file does not by itself cause the resulting executable to be covered by +// the GNU General Public License. This exception does not however +// invalidate any other reasons why the executable file might be covered by +// the GNU General Public License. + +#ifndef _CPP_BACKWARD_STREAMBUF_H +#define _CPP_BACKWARD_STREAMBUF_H 1 + +#include + +#ifdef __STL_USE_NAMESPACES +using __STD::streambuf; +#endif /* __STL_USE_NAMESPACES */ + +#endif /* _CPP_BACKWARD_STREAMBUF_H */ + +// Local Variables: +// mode:C++ +// End: