From owner-cvs-all Sun Feb 18 19:59:15 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5582F37B503; Sun, 18 Feb 2001 19:59:06 -0800 (PST) Received: (from kris@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1J3x6o40866; Sun, 18 Feb 2001 19:59:06 -0800 (PST) (envelope-from kris) Message-Id: <200102190359.f1J3x6o40866@freefall.freebsd.org> From: Kris Kennaway Date: Sun, 18 Feb 2001 19:59:06 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/make main.c src/etc/defaults make.conf src/share/mk sys.mk src/secure/lib/libcrypto Makefile Makefile.inc X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG kris 2001/02/18 19:59:05 PST Modified files: usr.bin/make main.c etc/defaults make.conf share/mk sys.mk secure/lib/libcrypto Makefile Makefile.inc Log: Introduce support for using OpenSSL ASM optimizations. This is done through the use of a new build directive, MACHINE_CPU, which contains a list of the CPU generations/features for which optimizations are desired. This feature will be extended to cover the ports tree in the future. Currently OpenSSL provides optimizations for i386, i586 and i686-class CPUs. Currently it has not been tested on an i386 or i486. Teach make(1) to provide sensible defaults for MACHINE_CPU if it is not defined (namely, the lowest common denominator CPU we support for each architecture). Currently this is i386 for the i386 architecture and ev4 for the alpha. sys.mk also sets the variable as a last resort for consistency with MACHINE_ARCH and bootstrapping from very old versions of make. Benchmarks show a significant speed increase even in the i386 case, with additional improvements for i586 and i686 systems. For maximum performance define MACHINE_CPU=i686 i586 i386 in /etc/make.conf. Based on a patch submitted by: Mike Silbersack Reviewed by: current Revision Changes Path 1.46 +16 -1 src/usr.bin/make/main.c 1.138 +15 -2 src/etc/defaults/make.conf 1.47 +4 -2 src/share/mk/sys.mk 1.29 +86 -8 src/secure/lib/libcrypto/Makefile 1.20 +7 -4 src/secure/lib/libcrypto/Makefile.inc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message