Commit 00218cb5 by Paolo Carlini Committed by Paolo Carlini

PR libstdc++/7219 (continued)

2004-08-20  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/7219 (continued)
	* include/bits/ios_base.h (class ios_base): Expose Annex D.6
	typedefs by default.
	* testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
	* testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
	line number.
	* testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.

From-SVN: r86340
parent f3b2657c
2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2004-08-20 Paolo Carlini <pcarlini@suse.de>
* cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory PR libstdc++/7219 (continued)
barrier to locking asm. * include/bits/ios_base.h (class ios_base): Expose Annex D.6
typedefs by default.
* testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
line number.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2004-08-20 Paolo Carlini <pcarlini@suse.de> 2004-08-20 Paolo Carlini <pcarlini@suse.de>
......
...@@ -357,7 +357,6 @@ namespace std ...@@ -357,7 +357,6 @@ namespace std
/// Request a seek relative to the current end of the sequence. /// Request a seek relative to the current end of the sequence.
static const seekdir end = seekdir(SEEK_END); static const seekdir end = seekdir(SEEK_END);
#ifdef _GLIBCXX_DEPRECATED
// Annex D.6 // Annex D.6
typedef int io_state; typedef int io_state;
typedef int open_mode; typedef int open_mode;
...@@ -365,7 +364,6 @@ namespace std ...@@ -365,7 +364,6 @@ namespace std
typedef std::streampos streampos; typedef std::streampos streampos;
typedef std::streamoff streamoff; typedef std::streamoff streamoff;
#endif
// Callbacks; // Callbacks;
/** /**
......
...@@ -41,5 +41,5 @@ void test01() ...@@ -41,5 +41,5 @@ void test01()
io1 = io2; io1 = io2;
} }
// { dg-error "within this context" "" { target *-*-* } 41 } // { dg-error "within this context" "" { target *-*-* } 41 }
// { dg-error "is private" "" { target *-*-* } 741 } // { dg-error "is private" "" { target *-*-* } 739 }
// { dg-error "operator=" "" { target *-*-* } 0 } // { dg-error "operator=" "" { target *-*-* } 0 }
...@@ -41,5 +41,5 @@ void test02() ...@@ -41,5 +41,5 @@ void test02()
test_base io2 = io1; test_base io2 = io1;
} }
// { dg-error "within this context" "" { target *-*-* } 41 } // { dg-error "within this context" "" { target *-*-* } 41 }
// { dg-error "is private" "" { target *-*-* } 738 } // { dg-error "is private" "" { target *-*-* } 736 }
// { dg-error "copy constructor" "" { target *-*-* } 0 } // { dg-error "copy constructor" "" { target *-*-* } 0 }
// Copyright (C) 2002 Free Software Foundation // Copyright (C) 2002, 2004 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -25,10 +25,8 @@ ...@@ -25,10 +25,8 @@
// Annex D, deprecated. // Annex D, deprecated.
void test01() void test01()
{ {
#if _GLIBCXX_DEPRECATED
std::ios_base::streampos spos; std::ios_base::streampos spos;
std::ios_base::streamoff soff; std::ios_base::streamoff soff;
#endif
} }
int main(void) int main(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment