Date: Mon, 4 Jan 1999 21:43:22 -0500 (EST) From: Brian Feldman <green@unixhelp.org> To: Kris Kennaway <kkennawa@physics.adelaide.edu.au> Cc: Wiliam Woods <wwoods@cybcon.com>, FBSD_QUESTIONS <questions@FreeBSD.ORG>, FBSD_CURRENT <freebsd-current@FreeBSD.ORG> Subject: Re: pgcc-1.1.1 Message-ID: <Pine.BSF.4.05.9901042142470.12251-100000@janus.syracuse.net> In-Reply-To: <Pine.OSF.4.05.9901040327240.18060-100000@bragg>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 Jan 1999, Kris Kennaway wrote:
> On Sun, 3 Jan 1999, Wiliam Woods wrote:
>
> > Anyone here useing pgcc-1.1.1 as their compiler of choice, to replace gcc? I
> > have been debating playing with this on my "spare" system.
> > Any reports from someone useing this, good or bad?
>
> I use egcs-1.1.1 (on which pgcc is based) to compile most of my stuff here,
> including the world. There are a few small "gotchas", namely bits of the
> system which will not compile (for me):
>
> lib/libc lib/libc_r lib/libstand games/rogue libexec/rtld-elf games/bs
> gnu/lib/libg++ gnu/lib/libstdc++ gnu/usr.bin/groff sys/boot/ sys/modules
>
> I have a small script which recompiles these using CC and CFLAGS and the
> system gcc, and then just do my usual make depend/make all -j4 cycle to do the
> rest. The kernel is also not compilable with egcs due to FreeBSD-specific
> extensions in our gcc compiler.
>
> There are the odd one or two ports I've come across which can't be compiled
> using egcs, but for the most part it works very nicely. A quick-n-dirty
> benchmark:
>
> # dd if=/dev/random of=/usr2/bigfile bs=1024k count=30
> # cp /usr2/bigfile /usr2/bigfile2
> # /usr/bin/time gzip-486 -9 /usr2/bigfile
> 26.06 real 20.46 user 1.17 sys
> # /usr/bin/time gzip-pent -9 /usr2/bigfile2
> 23.12 real 18.58 user 1.20 sys
>
> i.e. a speedup of about 12%
>
> gzip-486 was compiled with the stock gcc, -O2 -mno-486
> gzip-pentium was compiled with egcs-1.1.1 from the ports collection, -O2
> -mpentium -march-pentium
>
> Incidentally, the dd command spammed the heck out of my machine..good DoS,
> anyone? :)
--- src/sys/i386/i386/mem.c.orig Wed Dec 30 13:21:32 1998
+++ src/sys/i386/i386/mem.c Wed Dec 30 13:26:37 1998
@@ -287,6 +287,11 @@
c = iov->iov_len;
break;
}
+ if ((error = CURSIG(curproc)) != 0) {
+ postsig(error);
+ error = EINTR;
+ break;
+ }
if (buf == NULL)
buf = (caddr_t)
malloc(PAGE_SIZE, M_TEMP, M_WAITOK);
@@ -300,6 +305,11 @@
case 12:
if (uio->uio_rw == UIO_WRITE) {
c = iov->iov_len;
+ break;
+ }
+ if ((error = CURSIG(curproc)) != 0) {
+ postsig(error);
+ error = EINTR;
break;
}
if (zbuf == NULL) {
>
> Kris
>
>
> >
> > Thanks,
> >
> > Bill
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-current" in the body of the message
> >
>
> -----
> (ASP) Microsoft Corporation (MSFT) announced today that the release of its
> productivity suite, Office 2000, will be delayed until the first quarter
> of 1901.
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
>
Brian Feldman _ __ ___ ___ ___
green@unixhelp.org _ __ ___ | _ ) __| \
http://www.freebsd.org/ _ __ ___ ____ | _ \__ \ |) |
FreeBSD: The Power to Serve! _ __ ___ ____ _____ |___/___/___/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901042142470.12251-100000>
