Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 04:06:33 +0200 (CEST)
From:      Matthias Andree <matthias.andree@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/37212: make.conf/bsd.cpu.mk: i486 does not set -march.
Message-ID:  <20020418020633.E31EA2B@gandalf.emma.line.org>

next in thread | raw e-mail | index | archive | help

>Number:         37212
>Category:       misc
>Synopsis:       make.conf/bsd.cpu.mk: i486 does not set -march.
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 17 19:10:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.5-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD gandalf 4.5-RELEASE-p3 FreeBSD 4.5-RELEASE-p3 #0: Wed Apr 17 19:25:25 CEST 2002 root@emma1.emma.line.org:/usr/src_release/src/sys/compile/GANDALF i386


	
>Description:
When /etc/make.conf sets CPUTYPE=i486, -m486 (which is a synonym for
-mcpu=i486) will be added to the gcc options. However, CPUTYPE=i586 sets
-march=i586, which can make quite a difference because it drops i386 and
i486 compatibility.

I'd find it more consistent if CPUTYPE=i486 used -march=i486 (dropping
i386 compatibility) instead of -mcpu=i486 (-m486).
	
>How-To-Repeat:
	
>Fix:
Here's a patch against /usr/share/mk/bsd.cpu.mk:

--- /usr/share/mk/bsd.cpu.mk.orig	Thu Apr 18 03:49:38 2002
+++ /usr/share/mk/bsd.cpu.mk	Thu Apr 18 03:50:03 2002
@@ -49,7 +49,7 @@
 .  elif ${CPUTYPE} == "i586"
 _CPUCFLAGS = -march=pentium
 .  elif ${CPUTYPE} == "i486"
-_CPUCFLAGS = -m486
+_CPUCFLAGS = -march=i486
 .  endif
 . elif ${MACHINE_ARCH} == "alpha"
 .  if ${CPUTYPE} == "ev6"
	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020418020633.E31EA2B>