# $NetBSD: subr_x86,v 1.2 2007/08/27 10:09:22 abs Exp $ flags_fixup_x86arch() { arch=$1 features=$2 # Fixup ARCH for x86 # # The format of table is # feature:lowend_arch:fix_arch # $AWK -v "arch=${arch#-march=}" -v "features=$features" ' BEGIN { split(features,ar); FS=":" } { for (af in ar) { if ((ar[af] == $1) && (arch == $3)) { print $2; exit;} } } ' <