+2007-03-11 Paolo Carlini <pcarlini@suse.de>
+
+ PR libstdc++/28080 (final)
+ * include/std/iosfwd: Do not include <bits/c++io.h>.
+ * config/io/basic_file_stdio.h: Do it here.
+ * include/ext/stdio_sync_filebuf.h: Likewise.
+ * include/ext/rope: Include <bits/gthr.h> unconditionally.
+ * include/std/fstream: Do not include <bits/gthr.h>.
+
+ * include/std/ios: Do not include <cstdio>.
+ * include/bits/ios_base.h: Do it here.
+ * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error
+ line numbers.
+ * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
+
2007-03-10 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/28080 (partial)
// Wrapper of C-language FILE struct -*- C++ -*-
-// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
+// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
#pragma GCC system_header
#include <bits/c++config.h>
+#include <bits/c++io.h> // for __c_lock and __c_file
#include <ios>
_GLIBCXX_BEGIN_NAMESPACE(std)
// Iostreams base classes -*- C++ -*-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+// 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
#include <ext/atomicity.h>
#include <bits/localefwd.h>
#include <bits/locale_classes.h>
+#include <cstdio> // For SEEK_CUR, SEEK_END
_GLIBCXX_BEGIN_NAMESPACE(std)
#include <bits/allocator.h>
#include <ext/hash_fun.h>
#include <iosfwd>
+#include <bits/gthr.h>
# ifdef __GC
# define __GC_CONST const
# else
-# include <bits/gthr.h>
# define __GC_CONST // constant except for deallocation
# endif
// Iostreams wrapper for stdio FILE* -*- C++ -*-
-// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 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
#include <streambuf>
#include <unistd.h>
#include <cstdio>
+#include <bits/c++io.h> // For __c_file
#ifdef _GLIBCXX_USE_WCHAR_T
#include <cwchar>
// File based streams -*- C++ -*-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+// 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
#include <istream>
#include <ostream>
#include <locale> // For codecvt
-#include <cstdio> // For SEEK_SET, SEEK_CUR, SEEK_END, BUFSIZ
-#include <bits/basic_file.h>
-#include <bits/gthr.h>
+#include <cstdio> // For BUFSIZ
+#include <bits/basic_file.h> // For __basic_file, __c_lock
_GLIBCXX_BEGIN_NAMESPACE(std)
// Iostreams base classes -*- C++ -*-
-// Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+// 2005, 2006, 2007 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
#include <iosfwd>
#include <exception> // For ios_base::failure
#include <bits/char_traits.h> // For char_traits, streamoff, streamsize, fpos
-#include <cstdio> // For SEEK_SET, SEEK_CUR, SEEK_END
#include <bits/localefwd.h> // For class locale
#include <bits/ios_base.h> // For ios_base declarations.
#include <streambuf>
#include <bits/c++config.h>
#include <bits/c++locale.h>
-#include <bits/c++io.h>
#include <bits/stringfwd.h> // For string forward declarations.
#include <bits/postypes.h>
#include <bits/functexcept.h>
// { dg-do compile }
-// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 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
}
// { dg-error "synthesized" "" { target *-*-* } 41 }
// { dg-error "within this context" "" { target *-*-* } 34 }
-// { dg-error "is private" "" { target *-*-* } 782 }
+// { dg-error "is private" "" { target *-*-* } 784 }
// { dg-error "operator=" "" { target *-*-* } 0 }
// { dg-do compile }
-// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 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
}
// { dg-error "within this context" "" { target *-*-* } 35 }
// { dg-error "synthesized" "" { target *-*-* } 41 }
-// { dg-error "is private" "" { target *-*-* } 779 }
+// { dg-error "is private" "" { target *-*-* } 781 }
// { dg-error "copy constructor" "" { target *-*-* } 0 }