Module Name: src
Committed By: drochner
Date: Fri Mar 27 19:36:55 UTC 2009
Modified Files:
src/share/mk: bsd.own.mk
Log Message:
Use "i486" as GNU_ARCH for i386 so that the toolchain and libraries
can use instructions which were not available on the original i386
(eg cmpxchg). Due to some strangeness in gcc's i386 support this needs
an extra --with-arch=i486 configure argument for gcc to have the desired
effect, see my post "i386 vs i486, some inconsistencies" to tech-toolchain
some weeks ago.
I'm not happy to break compatibility, but since (a) kernel support
for i386 was removed and (b) i387 code was put into libm this is
just another coffin nail.
The gain is besides consistency and more efficient code that intel
atomar intrinsics can now be used by gcc. (which would need runtime
library support otherwise)
To generate a diff of this commit:
cvs rdiff -u -r1.559 -r1.560 src/share/mk/bsd.own.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.559 src/share/mk/bsd.own.mk:1.560
--- src/share/mk/bsd.own.mk:1.559 Mon Mar 9 06:25:51 2009
+++ src/share/mk/bsd.own.mk Fri Mar 27 19:36:55 2009
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.559 2009/03/09 06:25:51 apb Exp $
+# $NetBSD: bsd.own.mk,v 1.560 2009/03/27 19:36:55 drochner Exp $
.if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1
@@ -536,6 +536,8 @@
# GNU sources and packages sometimes see architecture names differently.
#
GNU_ARCH.coldfire=m68k
+GNU_ARCH.i386=i486
+GCC_CONFIG_ARCH.i386=i486
GNU_ARCH.m68000=m68010
GNU_ARCH.sh3eb=sh
GNU_ARCH.sh3el=shle