* egcs 1.0 patch for RedHat 5.0
[not found] <199712091815.SAA07392@santaka.cam-orl.co.uk>
@ 1997-12-10 10:58 ` H.J. Lu
1997-12-11 10:52 ` Jeffrey A Law
0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 1997-12-10 10:58 UTC (permalink / raw)
To: Sai-Lai Lo; +Cc: egcs
> I'm interested in the patch one needs to use egcs 1.0 on RH 5. Where can I
> get it?
This is a patch for egcs 1.0 to compile under RedHat 5.0. BTW,
your still need binutils 2.8.1.0.15 or above. See INSTALL for
details.
H.J.
-----
Tue Dec 9 21:51:32 1997 H.J. Lu (hjl@gnu.org)
* configure.in (target frags): Add *-linux-gnu.
Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
* streambuf.cc (streambuf::~streambuf): Don't delete _lock
for _IO_stdin/_IO_stdout/_IO_stderr.
diff -ur egcs-1.0/libio/configure.in egcs/libio/configure.in
--- egcs-1.0/libio/configure.in Tue Dec 9 10:43:38 1997
+++ egcs/libio/configure.in Tue Dec 9 21:41:44 1997
@@ -64,6 +64,17 @@
cp ${srcdir}/config/linuxaxp1-libc-lock.h libc-lock.h
cp ${srcdir}/config/linuxaxp1-stdio-lock.h stdio-lock.h
;;
+ *-linux-gnu)
+ # We have a correct libc-lock.h in glibc 2.1 but not all glibc 2.0.
+ # Create a wrapper if necessary.
+ (echo "#include <bits/libc-lock.h>" | ${CC-cc} -E -) >/dev/null 2>&1 ||
+ {
+ echo "#include_next <libc-lock.h>" > libc-lock.h
+ echo 'asm (".weak _pthread_cleanup_pop_restore");' >> libc-lock.h
+ echo 'asm (".weak _pthread_cleanup_push_defer");' >> libc-lock.h
+
+ }
+ ;;
esac
for frag in ${frags}; do
diff -ur egcs-1.0/libio/streambuf.cc egcs/libio/streambuf.cc
--- egcs-1.0/libio/streambuf.cc Tue Dec 9 10:38:10 1997
+++ egcs/libio/streambuf.cc Tue Dec 9 21:14:06 1997
@@ -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] 2+ messages in thread
* Re: egcs 1.0 patch for RedHat 5.0
1997-12-10 10:58 ` egcs 1.0 patch for RedHat 5.0 H.J. Lu
@ 1997-12-11 10:52 ` Jeffrey A Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1997-12-11 10:52 UTC (permalink / raw)
To: hjl; +Cc: egcs, Sai-Lai Lo
In message < m0xfqaZ-0004ecC@ocean.lucon.org >you write:
> > I'm interested in the patch one needs to use egcs 1.0 on RH 5. Where
> > can I get it?
>
> This is a patch for egcs 1.0 to compile under RedHat 5.0. BTW,
> your still need binutils 2.8.1.0.15 or above. See INSTALL for
> details.
>
> H.J.
> -----
> Tue Dec 9 21:51:32 1997 H.J. Lu (hjl@gnu.org)
>
> * configure.in (target frags): Add *-linux-gnu.
>
> Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
>
> * streambuf.cc (streambuf::~streambuf): Don't delete _lock
> for _IO_stdin/_IO_stdout/_IO_stderr.
Looks good to me; I'll add this to the RH5.0 entry in the FAQ.
Both patches are also in the development sources now.
Thanks!
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-12-11 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <199712091815.SAA07392@santaka.cam-orl.co.uk>
1997-12-10 10:58 ` egcs 1.0 patch for RedHat 5.0 H.J. Lu
1997-12-11 10:52 ` Jeffrey A Law
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).