1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00
freebsd/share
Tom Rhodes 06d6e4fcfe This are the build infrastructure changes to allow to use the
Intel C/C++ compiler (lang/icc) to build the kernel.

The icc CPUTYPE CFLAGS use icc v7 syntax, icc v8 moans about them, but
doesn't abort. They also produce CPU specific code (new instructions
of the CPU, not only CPU specific scheduling), so if you get coredumps
with signal 4 (SIGILL, illegal instruction) you've used the wrong
CPUTYPE.

Incarnations of this patch survive gcc compiles and my make universe.
I use it on my desktop.

To use it update share/mk, add
	/usr/local/intel/compiler70/ia32/bin	(icc v7, works)
or
	/usr/local/intel_cc_80/bin		(icc v8, doesn't work)
to your PATH, make sure you have a new kernel compile directory
(e.g. MYKERNEL_icc) and run
	CFLAGS="-O2 -ip" CC=icc make depend
	CFLAGS="-O2 -ip" CC=icc make
in it.

Don't compile with -ipo, the build infrastructure uses ld directly to
link the kernel and the modules, but -ipo needs the link step to be
performed with Intel's linker.

Problems with icc v8:
 - panic: npx0 cannot be emulated on an SMP system
 - UP: first start of /bin/sh results in a FP exception

Parts of this commit contains suggestions or submissions from
Marius Strobl <marius@alchemy.franken.de>.

Reviewed by:	silence on -arch
Submitted by:	netchild
2004-03-12 21:36:12 +00:00
..
colldef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
dict Add amnia, amniotic, and amniocentesis. 2003-05-05 05:51:16 +00:00
doc Fix typo. 2004-02-23 23:39:42 +00:00
examples Link pf to the build and install: 2004-03-08 22:03:29 +00:00
info Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
isdn
man Rewrite sleepqueue manpage to catch up to the new sleep queue interface. 2004-03-12 19:07:18 +00:00
me Fix typos (s/seperat/separat/ et al); add FreeBSD ID. 2002-08-12 10:04:32 +00:00
misc Add final version of BSD/OS, BSD/OS 5.1 ISE. 2004-03-07 16:44:10 +00:00
mk This are the build infrastructure changes to allow to use the 2004-03-12 21:36:12 +00:00
mklocale Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
monetdef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
msgdef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
numericdef Use correct thousands separator for the Italian locale. 2004-02-18 05:23:09 +00:00
security Makefile.inc wasn't needed; this is a left-over of other files present 2003-11-08 17:56:53 +00:00
sendmail Remove MAINTAINER= lines from individual Makefiles in favor of the 2003-07-07 03:54:04 +00:00
skel Use the standard <bsd.files.mk> API to install files. 2004-01-19 13:40:51 +00:00
syscons Rremoved bogus -static from CFLAGS. Makeworld will add -static in the 2004-02-26 07:50:56 +00:00
tabset
termcap Instead of repeating most of vt102, make mvterm reference it. 2004-03-12 17:41:13 +00:00
timedef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
zoneinfo MFV: tzdata2003d 2003-10-14 21:03:22 +00:00
Makefile Normalize. 2004-01-20 13:09:29 +00:00
Makefile.inc