public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* An egcs patch for libio
@ 1997-12-03 12:54 H.J. Lu
  1997-12-05 23:33 ` Jeffrey A Law
  0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 1997-12-03 12:54 UTC (permalink / raw)
  To: egcs; +Cc: Ulrich Drepper

This patch is needed for glibc 2. BTW, libio in egcs is not compatible
with libio in glibc 2.1. I have patches for both glibc 2.1 and egcs.
But they have to go tegether.

FYI, the _lock field in _IO_stdin/_IO_stdout/_IO_stderr is not
newed. It is a static variable.

-- 
H.J. Lu (hjl@gnu.org)
----  
Wed Dec  3 10:49:39 1997  H.J. Lu  (hjl@gnu.org)

	* streambuf.cc (streambuf::~streambuf): Don't delete _lock
	for _IO_stdin/_IO_stdout/_IO_stderr.

Index: streambuf.cc
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libio/streambuf.cc,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 streambuf.cc
--- streambuf.cc	1997/09/17 20:12:35	1.1.1.3
+++ streambuf.cc	1997/12/03 18:46:48
@@ -220,7 +220,8 @@
 {
   _IO_default_finish(this,0);
 #ifdef _IO_MTSAFE_IO
-  delete _lock;
+  if (this != _IO_stdin && this != _IO_stdout && this != _IO_stderr)
+    delete _lock;
 #endif
 }
 

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <87vhx5aigr.fsf@mharnois.workgroup.net>]

end of thread, other threads:[~1997-12-05 23:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-03 12:54 An egcs patch for libio H.J. Lu
1997-12-05 23:33 ` Jeffrey A Law
     [not found] <87vhx5aigr.fsf@mharnois.workgroup.net>
1997-12-04 13:27 ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).