label2.C: Tweak to work with V3.
authorMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 26 Oct 2000 23:17:35 +0000 (23:17 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 26 Oct 2000 23:17:35 +0000 (23:17 +0000)
* 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

13 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.brendan/label2.C
gcc/testsuite/g++.old-deja/g++.law/builtin1.C
gcc/testsuite/g++.old-deja/g++.law/ctors10.C
gcc/testsuite/g++.old-deja/g++.law/virtual3.C
gcc/testsuite/g++.old-deja/g++.mike/p658.C
gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
gcc/testsuite/g++.old-deja/g++.other/vaarg2.C
gcc/testsuite/g++.old-deja/g++.robertl/eb124.C
gcc/testsuite/g++.old-deja/g++.robertl/eb44.C
gcc/testsuite/g++.old-deja/g++.robertl/eb77.C
libstdc++-v3/ChangeLog
libstdc++-v3/include/backward/streambuf.h [new file with mode: 0644]

index c714459..65d5ae8 100644 (file)
@@ -1,3 +1,16 @@
+2000-10-26  Mark Mitchell  <mark@codesourcery.com>
+
+       * 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  <nathan@codesourcery.com>
 
        * gcc.c-torture/compile/20001024-1.c: New test.
index bce2112..5abdb15 100644 (file)
@@ -1,5 +1,8 @@
 // Build don't link: 
 // GROUPS passed labels
+
+extern "C" void abort();
+
 class X {
 public:
     X();
index e9b4654..86a91e7 100644 (file)
@@ -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");}
index 213b798..6520087 100644 (file)
@@ -13,7 +13,7 @@ class Class
         class Err : public ostream
         {
         public:
-                Err(void) : ostream() { }
+                Err(void) : ostream(NULL) { }
                 ~Err(void) { }
         };
 public:
index d131da4..92e7db8 100644 (file)
@@ -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);
    
index 14658f0..842ae8b 100644 (file)
@@ -1,8 +1,7 @@
 // prms-id: 658
 
 #include <ostream.h>
-
-extern "C" void abort();
+#include <stdlib.h>
 
 /* We may not find the libg++ <bool.h>.  */
 #ifndef FALSE
index 8add4b8..99a1dc1 100644 (file)
@@ -1,6 +1,6 @@
 // Special g++ Options: -O2
 
-#include <iostream>
+#include <iostream.h>
 
 ostream& foo (char *x, ostream &y)
 {
index aca5e21..fe1fa7e 100644 (file)
@@ -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 <nathan@acm.org>
 
 // Make sure we can deal with POD aggregate in va_args
 
 #include <stdarg.h>
-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;};
index c9c7395..92fa872 100644 (file)
@@ -1,3 +1,5 @@
 //Build don't link:
 #include <stdexcept>
-class X : public std::runtime_error {};
+class X : public std::runtime_error {
+  X ();
+};
index b02b9aa..04ff13d 100644 (file)
@@ -31,6 +31,5 @@ ostream& operator<< (ostream& out, const Vector<char>&)
 int main()
 {
   Vector<char> vc;
-  ostream out;
-  out << vc;
+  cout << vc;
 }
index 206b27d..d37b3ea 100644 (file)
@@ -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;
index 85e4fca..70528d8 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-26  Mark Mitchell  <mark@codesourcery.com>
+
+       * include/backward/streambuf.h: New file.
+
 2000-10-26  David Edelsohn  <dje@watson.ibm.com> 
         
        * config/os/aix/bits/ctype_inline.h (is): Use __OBJ_DATA directly.
        * include/c_std/bits/std_cstdlib.h: abort, exit comment.
        * include/c_std/stdlib.h: Same here.
        
+2000-10-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * 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  <bkoz@purist.soma.redhat.com>
 
        * 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 (file)
index 0000000..9bb7646
--- /dev/null
@@ -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 <bits/std_streambuf.h>
+
+#ifdef __STL_USE_NAMESPACES
+using __STD::streambuf;
+#endif /* __STL_USE_NAMESPACES */
+
+#endif /* _CPP_BACKWARD_STREAMBUF_H */
+
+// Local Variables:
+// mode:C++
+// End: