From owner-freebsd-current Sun Nov 7 23: 0: 3 1999 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id DD2C615151; Sun, 7 Nov 1999 22:59:59 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p26-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.155]) by peach.ocn.ne.jp (8.9.1a/OCN) with ESMTP id PAA12719; Mon, 8 Nov 1999 15:59:50 +0900 (JST) Message-ID: <38266940.FC115D61@newsguy.com> Date: Mon, 08 Nov 1999 15:10:08 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Gary Jennejohn Cc: freebsd-current@FreeBSD.ORG, Mike Smith , Robert Nordier , obrien@freebsd.org Subject: Re: show stopper for Gcc 2.95.2 conversion References: <199911072004.VAA01702@peedub.muc.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gary Jennejohn wrote: > > >Mmmm... O'Brien, could you make sure the space-critical code in > >sys/boot compiles ok? > > I still have GCC 2.95.2 installed. This is what I get in /sys/boot: > > ===> i386/boot2 > (cd /usr/src/sys/boot/i386/boot2; m4 -DFLAGS=0 boot1.m4 boot1.s) | as -o boot1.o > ld -nostdlib -static -N -e start -Ttext 0x7c00 -o boot1.out boot1.o > objcopy -S -O binary boot1.out boot1 > dd if=/dev/zero of=boot2.ldr bs=512 count=1 2>/dev/null > cc -elf -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -fno-builtin -Os -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd > -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs > -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -c boot2.c > (cd /usr/src/sys/boot/i386/boot2; m4 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 sio.s) | as -o sio.o > ld -nostdlib -static -N -Ttext 0x1000 -o boot2.out /usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o > objcopy -S -O binary boot2.out boot2.bin > btxld -v -E 0x1000 -f bin -b /usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin > kernel: ver=1.01 size=700 load=9000 entry=9010 map=16M pgctl=1:1 > client: fmt=bin size=15c0 text=0 data=0 bss=0 entry=0 > output: fmt=bin size=1ec0 text=200 data=1cc0 org=0 entry=0 > -192 bytes available > ^^^^^^^^^^^^^^^^^^^^ Well, the flags seem correct (in particular -Os). It would be interesting to see what's the difference in the assembler code generated by both. Unfortunately, I cannot upgrade my system for the time being. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org What y'all wanna do? Wanna be hackers? Code crackers? Slackers Wastin' time with all the chatroom yakkers? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message