diff options
author | abs <abs@pkgsrc.org> | 2004-06-06 22:59:29 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2004-06-06 22:59:29 +0000 |
commit | 17df2ded6db8eeccd5589293a58642c9373aa87a (patch) | |
tree | ca4fdf3fee403e6087fbb7a7075e38adb7b8ec59 | |
parent | 9e2096be980db6bbe2ccbdb754e68ae53ecdd6fa (diff) | |
download | pkgsrc-17df2ded6db8eeccd5589293a58642c9373aa87a.tar.gz |
Update cpuflags to 0.70
Correctly 'downgrade' -march=pentium3 -mno-sse to -march=pentiumpro
for older compilers. Should address PR pkg/25759
-rw-r--r-- | devel/cpuflags/Makefile | 4 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.NetBSD | 108 | ||||
-rw-r--r-- | doc/CHANGES | 3 |
3 files changed, 61 insertions, 54 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile index 31c0377f3f0..62c0246fdf7 100644 --- a/devel/cpuflags/Makefile +++ b/devel/cpuflags/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.72 2004/05/10 17:39:39 abs Exp $ +# $NetBSD: Makefile,v 1.73 2004/06/06 22:59:29 abs Exp $ # -DISTNAME= cpuflags-0.68 +DISTNAME= cpuflags-0.70 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty diff --git a/devel/cpuflags/files/cpuflags.NetBSD b/devel/cpuflags/files/cpuflags.NetBSD index 5383b9bf601..efc383ec195 100755 --- a/devel/cpuflags/files/cpuflags.NetBSD +++ b/devel/cpuflags/files/cpuflags.NetBSD @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: cpuflags.NetBSD,v 1.48 2004/04/22 12:00:05 abs Exp $ +# $NetBSD: cpuflags.NetBSD,v 1.49 2004/06/06 22:59:30 abs Exp $ if [ -x /sbin/sysctl ] ;then SYSCTL=/sbin/sysctl @@ -41,6 +41,7 @@ case $hw_machine_arch in arm | arm32) case $hw_model in ARM610*) FLAGS="-mcpu=arm610" ;; # risc pc ARM710*) FLAGS="-mcpu=arm710" ;; # risc pc + i80321\ *) FLAGS="-mcpu=xscale" ;; # iyonix SA-110*) case $hw_machine in # arm32 split post 1.5 cats|shark|hpcarm|netwinder) @@ -83,7 +84,9 @@ case $hw_machine_arch in *486-class*) FLAGS='-march=i486' ;; *586-class*) FLAGS='-march=pentium' ;; *686-class*) FLAGS='-march=pentiumpro' ;; - esac ;; + esac + FLAGS='-march=pentium3 -mno-sse' + ;; m68k) case $hw_model in # Examples *\(68020*|*\ MC68020\ *) FLAGS='-m68020' ;; # Untested @@ -158,10 +161,10 @@ esac if [ -z "$FLAGS" -a -z "$NONE" ] ; then echo 'Unknown machine - please send details to abs@netbsd.org' >&2 - echo " hw.model : '$hw_model'" >&2 - echo " hw.machine : '$hw_machine'" >&2 + echo " hw.model : '$hw_model'" >&2 + echo " hw.machine : '$hw_machine'" >&2 echo " hw.machine_arch : '$hw_machine_arch'" >&2 - echo " cpu details :" >&2 + echo " cpu details :" >&2 egrep '^cpu' /var/run/dmesg.boot >&2 fi @@ -174,55 +177,58 @@ fi if [ -n "$FLAGS" ]; then gcc_ver=`${CC} -dumpversion | sed 's/^egcs-//'` - FLAGS=`awk -v "flags=$FLAGS" -v "gcc_ver=$gcc_ver" ' + FLAGS=`awk -F: -v "flags=$FLAGS" -v "gcc_ver=$gcc_ver" ' { if (gcc_ver < $1){map[$2] = ""$3} } END { while (flags in map) {flags = map[flags]} print flags } ' <<EOD -2.90 -march=i386 -mno-486 -2.90 -march=i486 -m486 -2.90 -march=pentium -m486 -2.90 -march=pentiumpro -m486 -2.90 -mcpu=21164a -2.90 -mcpu=arm610 -m6 -2.90 -mcpu=arm710 -m6 -2.90 -mcpu=cypress -mcypress -2.90 -mcpu=sparclite -msparclite -2.90 -mcpu=strongarm110 -m6 -2.90 -mcpu=supersparc -msupersparc -2.90 -mcpu=v9 -mv8 -2.95 -march=k6 -march=pentium -3.0 -march=athlon -march=pentiumpro -3.0 -march=athlon-4 -march=pentiumpro -3.0 -march=athlon-mp -march=pentiumpro -3.0 -march=athlon-xp -march=pentiumpro -3.1 -march=r2000 -cpu=r2000 -3.1 -march=r3000 -cpu=r3000 -3.1 -march=r3900 -cpu=r3900 -3.1 -march=r4000 -cpu=r4000 -3.1 -march=r4100 -cpu=r4100 -3.1 -march=r4300 -cpu=r4300 -3.1 -march=r4400 -cpu=r4400 -3.1 -march=r4600 -cpu=r4600 -3.1 -march=r5000 -cpu=r5000 -3.1 -march=r6000 -cpu=r6000 -3.1 -march=r8000 -cpu=r8000 -3.1 -mcpu=21264a -mcpu=21264 -3.1 -mtune=r2000 -cpu=r2000 -3.1 -mtune=r3000 -cpu=r3000 -3.1 -mtune=r3900 -cpu=r3900 -3.1 -mtune=r4000 -cpu=r4000 -3.1 -mtune=r4100 -cpu=r4100 -3.1 -mtune=r4300 -cpu=r4300 -3.1 -mtune=r4400 -cpu=r4400 -3.1 -mtune=r4600 -cpu=r4600 -3.1 -mtune=r5000 -cpu=r5000 -3.1 -mtune=r6000 -cpu=r6000 -3.1 -mtune=r8000 -cpu=r8000 -3.2 -march=k6-2 -march=k6 -3.2 -march=k6-3 -march=k6 -3.2 -march=pentium2 -march=pentiumpro -3.2 -march=pentium3 -march=pentiumpro -3.2 -march=pentium4 -march=pentiumpro +2.90:-march=i386:-mno-486 +2.90:-march=i486:-m486 +2.90:-march=pentium:-m486 +2.90:-march=pentiumpro:-m486 +2.90:-mcpu=21164a: +2.90:-mcpu=arm610:-m6 +2.90:-mcpu=arm710:-m6 +2.90:-mcpu=cypress:-mcypress +2.90:-mcpu=sparclite:-msparclite +2.90:-mcpu=strongarm110:-m6 +2.90:-mcpu=supersparc:-msupersparc +2.90:-mcpu=v9:-mv8 +2.95:-march=k6:-march=pentium +3.0:-march=athlon:-march=pentiumpro +3.1:-march=athlon-4:-march=pentiumpro +3.1:-march=athlon-mp:-march=pentiumpro +3.1:-march=athlon-tbird:-march=pentiumpro +3.1:-march=athlon-xp:-march=pentiumpro +3.1:-march=k6-2:-march=k6 +3.1:-march=k6-3:-march=k6 +3.1:-march=pentium-mmx:-march=pentium +3.1:-march=pentium2:-march=pentiumpro +3.1:-march=pentium3 -mno-sse:-march=pentiumpro +3.1:-march=pentium3:-march=pentiumpro +3.1:-march=pentium4:-march=pentiumpro +3.1:-march=r2000:-cpu=r2000 +3.1:-march=r3000:-cpu=r3000 +3.1:-march=r3900:-cpu=r3900 +3.1:-march=r4000:-cpu=r4000 +3.1:-march=r4100:-cpu=r4100 +3.1:-march=r4300:-cpu=r4300 +3.1:-march=r4400:-cpu=r4400 +3.1:-march=r4600:-cpu=r4600 +3.1:-march=r5000:-cpu=r5000 +3.1:-march=r6000:-cpu=r6000 +3.1:-march=r8000:-cpu=r8000 +3.1:-mcpu=21264a:-mcpu=21264 +3.1:-mtune=r2000:-cpu=r2000 +3.1:-mtune=r3000:-cpu=r3000 +3.1:-mtune=r3900:-cpu=r3900 +3.1:-mtune=r4000:-cpu=r4000 +3.1:-mtune=r4100:-cpu=r4100 +3.1:-mtune=r4300:-cpu=r4300 +3.1:-mtune=r4400:-cpu=r4400 +3.1:-mtune=r4600:-cpu=r4600 +3.1:-mtune=r5000:-cpu=r5000 +3.1:-mtune=r6000:-cpu=r6000 +3.1:-mtune=r8000:-cpu=r8000 EOD ` fi diff --git a/doc/CHANGES b/doc/CHANGES index b7c2621e378..361baf3634f 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,4 +1,4 @@ -$NetBSD: CHANGES,v 1.6169 2004/06/06 22:11:52 abs Exp $ +$NetBSD: CHANGES,v 1.6170 2004/06/06 23:00:03 abs Exp $ Changes to the packages collection and infrastructure in 2004: @@ -2827,4 +2827,5 @@ Changes to the packages collection and infrastructure in 2004: Updated roundup to 0.7.3 [recht 2004-06-06] Updated exim to 4.34 [abs 2004-06-06] Updated exim-exiscan to 4.34_22 [abs 2004-06-06] + Updated cpuflags to 0.70 [abs 2004-06-06] |