mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-04 23:30:09 +08:00
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
This commit is contained in:
parent
8eb99146fb
commit
140c3b7e9f
@ -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.
|
||||
|
@ -1,5 +1,8 @@
|
||||
// Build don't link:
|
||||
// GROUPS passed labels
|
||||
|
||||
extern "C" void abort();
|
||||
|
||||
class X {
|
||||
public:
|
||||
X();
|
||||
|
@ -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");}
|
||||
|
@ -13,7 +13,7 @@ class Class
|
||||
class Err : public ostream
|
||||
{
|
||||
public:
|
||||
Err(void) : ostream() { }
|
||||
Err(void) : ostream(NULL) { }
|
||||
~Err(void) { }
|
||||
};
|
||||
public:
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Special g++ Options: -O2
|
||||
|
||||
#include <iostream>
|
||||
#include <iostream.h>
|
||||
|
||||
ostream& foo (char *x, ostream &y)
|
||||
{
|
||||
|
@ -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;};
|
||||
|
@ -1,3 +1,5 @@
|
||||
//Build don't link:
|
||||
#include <stdexcept>
|
||||
class X : public std::runtime_error {};
|
||||
class X : public std::runtime_error {
|
||||
X ();
|
||||
};
|
||||
|
@ -31,6 +31,5 @@ ostream& operator<< (ostream& out, const Vector<char>&)
|
||||
int main()
|
||||
{
|
||||
Vector<char> vc;
|
||||
ostream out;
|
||||
out << vc;
|
||||
cout << vc;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
@ -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 <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.
|
||||
|
42
libstdc++-v3/include/backward/streambuf.h
Normal file
42
libstdc++-v3/include/backward/streambuf.h
Normal file
@ -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:
|
Loading…
Reference in New Issue
Block a user