*BSD News Article 10193


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA7396 ; Fri, 22 Jan 93 11:44:12 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!wupost!slustl!ejh
From: ejh@slustl.slu.edu (Eric J. Haug)
Subject: 386bsd kernel compiled with gcc-2.3.3 running
Message-ID: <1993Jan20.223918.29602@slustl.slu.edu>
Organization: St. Louis Univ.
Date: Wed, 20 Jan 1993 22:39:18 GMT
Lines: 18

I have a 386bsd 0.1 kernel compiled with gcc-2.3.3 running on
my box at home.
The patches posted by vlinden@fwi.uva.nl seem to be sufficient
though i only used the changes to the segments.h file because
I did an independent kernel port to gcc-2.1.1 a long time ago and used
gcc-1.39 to compile the machdep.c file.
During the gcc-2.3.3 compile I noted a few problems
with <= and >= comparisons of unsigned
quantities, that i have not fixed yet. Some of them have the
infamous XXX on the line so.....
You must add the HANDLE_SYSV_PRAGMA to i386bsd.h and recompile
gcc-2.3.3 (takes 5 hours on my home box) and use the #pragma pack(1)
Does anybody know if the gcc on ref.tfs.com has PRAGMAS ?
The documented __attribute__ ((packed(1)) does not seem to get the
job done. There is a warning about packed being ignored
but the structure sizes do change, but the kernel does not run properly.
I may not have correctly added the __attribute__ to the header files though
eric