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

* Re: An egcs patch for libio
  1997-12-03 12:54 An egcs patch for libio H.J. Lu
@ 1997-12-05 23:33 ` Jeffrey A Law
  0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey A Law @ 1997-12-05 23:33 UTC (permalink / raw)
  To: H.J. Lu; +Cc: egcs, Ulrich Drepper

  In message < m0xdJwR-0004ecC@ocean.lucon.org >you write:
  > 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.
Thanks.  I've installed this patch.

jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: An egcs patch for libio
       [not found] <87vhx5aigr.fsf@mharnois.workgroup.net>
@ 1997-12-04 13:27 ` H.J. Lu
  0 siblings, 0 replies; 3+ messages in thread
From: H.J. Lu @ 1997-12-04 13:27 UTC (permalink / raw)
  To: Michael Harnois; +Cc: GNU C Library, egcs

> 
>     > 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.
> 
> Could I try these patches out, please? I looked for them in your ftp
> directory but didn't see them there.
> 

You are the only who has asked for them :-(. Who else are
interested in getting egcs to work with glibc 2.1? My glibc
patch is against glibc 2.1 971118. I need to clean it up
before I can put it up for ftp. If there are enough people
interested in it, I will spend some time making one.


H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

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).