Subject: pkg/21766: cpuflags doesn't work with Athlon XP
To: None <gnats-bugs@gnats.netbsd.org>
From: None <marc@informatik.uni-bremen.de>
List: netbsd-bugs
Date: 06/03/2003 22:25:30
>Number:         21766
>Category:       pkg
>Synopsis:       cpuflags doesn't work with Athlon XP
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 03 20:26:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marc Recht
>Release:        NetBSD 1.6T
>Organization:
	
>Environment:
	
	
System: NetBSD leeloo.intern.geht.de 1.6T NetBSD 1.6T (LEELOO) #0: Tue Jun 3 13:40:37 CEST 2003 root@leeloo.intern.geht.de:/usr/obj/sys/arch/i386/compile/LEELOO i386
Architecture: i386
Machine: i386
>Description:
-march=athlon doesn't work with (system) gcc 2.95.3
	
>How-To-Repeat:
gcc -march=athlon test.c
cc1: bad value (athlon) for -march= switch
	
>Fix:
Index: files/cpuflags.NetBSD
===================================================================
RCS file: /cvsroot/pkgsrc/devel/cpuflags/files/cpuflags.NetBSD,v
retrieving revision 1.36
diff -u -u -b -r1.36 cpuflags.NetBSD
--- files/cpuflags.NetBSD       2003/06/03 10:17:48     1.36
+++ files/cpuflags.NetBSD       2003/06/03 20:22:01
@@ -65,7 +65,7 @@
        *AMD\ K6-III*)          FLAGS='-march=k6-3'             ;;
        *AMD\ K6-2*)            FLAGS='-march=k6-2'             ;;
        *AMD\ K6*)              FLAGS='-march=k6'               ;;
-       *AMD\ K7*|*AMD\ Athlon*) FLAGS='-march=athlon'          ;;
+       *AMD\ K7*|*AMD\ Athlon*) FLAGS='-march=pentiumpro'      ;;
        *386-class*)            FLAGS='-march=i386'             ;;
        *486-class*)            FLAGS='-march=i486'             ;;
        *586-class*)            FLAGS='-march=pentium'          ;;
	
>Release-Note:
>Audit-Trail:
>Unformatted: