freebsd-src/share/mk
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
..
bsd.cpu.mk This are the build infrastructure changes to allow to use the 2004-03-12 21:36:12 +00:00
bsd.dep.mk This are the build infrastructure changes to allow to use the 2004-03-12 21:36:12 +00:00
bsd.doc.mk Document most of bsd.doc.mk variables. 2002-10-30 17:03:48 +00:00
bsd.files.mk Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
bsd.incs.mk Try really hard to fix parallel installs. Add a bunch of .ORDER 2002-07-03 12:28:03 +00:00
bsd.info.mk Fixed bogus ${FOO:Mbar} tests where the actual intent is to check 2004-01-27 23:22:15 +00:00
bsd.init.mk Don't include bsd.own.mk from sys.mk, this makes it impossible 2002-04-17 13:49:29 +00:00
bsd.kmod.mk Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mk 2001-05-19 23:18:21 +00:00
bsd.lib.mk This are the build infrastructure changes to allow to use the 2004-03-12 21:36:12 +00:00
bsd.libnames.mk Register libarchive in bsd.libnames.mk and mdoc.local 2004-02-13 01:14:38 +00:00
bsd.links.mk Try really hard to fix parallel installs. Add a bunch of .ORDER 2002-07-03 12:28:03 +00:00
bsd.man.mk Implement sed(1) commands using the make(1)'s RE variable modifier. 2003-09-07 12:59:22 +00:00
bsd.nls.mk Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk. 2002-07-02 12:37:09 +00:00
bsd.obj.mk Fix a very corner case when you want to make cleandir SUBDIRs which 2004-01-02 05:05:48 +00:00
bsd.own.mk Temporarily put STRIP back; bsd.port.mk still needs it. 2004-02-05 20:48:44 +00:00
bsd.port.mk Style. 2002-04-19 07:43:50 +00:00
bsd.port.post.mk Fix the type of .include. 2002-04-19 07:42:41 +00:00
bsd.port.pre.mk Fix the type of .include. 2002-04-19 07:42:41 +00:00
bsd.port.subdir.mk Style. 2002-04-19 07:43:50 +00:00
bsd.prog.mk Two changes to aid in cleaning up sys/boot/ makefiles: 2004-02-09 14:05:17 +00:00
bsd.README Don't define STRIP in bsd.own.mk. 2004-02-05 20:16:18 +00:00
bsd.subdir.mk Moved the `distribute' target from bsd.obj.mk to bsd.subdir.mk, 2002-07-12 15:09:35 +00:00
bsd.sys.mk This are the build infrastructure changes to allow to use the 2004-03-12 21:36:12 +00:00
Makefile GC port.mkversion. 2004-02-05 00:07:09 +00:00
sys.mk Fixed breakage of POSIX support in rev.1.31. -pipe was added to 2004-02-04 14:40:44 +00:00