Subject: Re: bin/7106: dhcpd broken
To: None <tech-toolchain@netbsd.org>
From: John Darrow <John.P.Darrow@wheaton.edu>
List: tech-toolchain
Date: 03/08/1999 15:08:59
In article <000101be6988$44c40b80$53cb08d4@martins.teuto.de>,
martin@rumolt.teuto.de wrote:
>This seems to be due to a toolchain-problem. While investigating the problem
>I recompiled with "-g" instead of the default "-O2" and this version works
>fine. I'm using i386 by the way...
>
I, too, have run across an optimization problem under egcs on i386, as the
included commands show. Compiling with -O instead of -O2 fixes things.
I'm not sure if the same problem appears on other arches.
jdarrow
--
John Darrow
Computing Services, Wheaton College, Wheaton, IL
John.P.Darrow@wheaton.edu
[200] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# make cleandir
rm -f a.out [Ee]rrs mklog core *.core rwho rwho.o rwho.ln
rm -f rwho.cat1
rm -f .depend /var/src/usr.bin/rwho/tags
[201] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# make depend
mkdep -a rwho.c
[202] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# make COPTS=-O
cc -O2 -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror -c rwho.c
cc -o rwho rwho.o
nroff -mandoc rwho.1 > rwho.cat1
[203] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# ./rwho -a
jdarrow jdarrow:ttyp1 Mar 5 16:46
jdarrow jdarrow:ttyp2 Mar 5 16:46
jdarrowl jdarrow:tty01 Mar 5 16:44 :01
johnh johnh:ttyp1 Feb 25 22:41 99:59
johnh johnh:ttyp2 Feb 26 00:24 99:59
johnh johnh:ttyp3 Feb 26 07:44 99:59
johnh johnh:ttyv3 Feb 25 22:40 99:59
johnh scilab8:ttyp2 Feb 26 07:42 99:59
mahoward scilab2:ttyp0 Mar 2 22:48 99:59
[204] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# make cleandir
rm -f a.out [Ee]rrs mklog core *.core rwho rwho.o rwho.ln
rm -f rwho.cat1
rm -f .depend /var/src/usr.bin/rwho/tags
[205] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# make depend
mkdep -a rwho.c
[206] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# make
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror -c rwho.c
cc -o rwho rwho.o
nroff -mandoc rwho.1 > rwho.cat1
[207] root@jdarrow:ttyp2:/var/src/usr.bin/rwho:# ./rwho -a
jdarrow jdarrow:ttyp1 Mar 5 16:46
jdarrow jdarrow:ttyp2 Mar 5 16:46
jdarrowl jdarrow:tty01 Mar 5 16:44 :01
johnh johnh:ttyp1 Feb 25 22:41 -175:59
johnh johnh:ttyp2 Feb 26 00:24 -175:59
johnh johnh:ttyp3 Feb 26 07:44 -175:59
johnh johnh:ttyv3 Feb 25 22:40 -175:59
johnh scilab8:ttyp2 Feb 26 07:42 -175:59
mahoward scilab2:ttyp0 Mar 2 22:48 -175:59