Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2004 12:14:22 -0700
From:      Joel Ray Holveck <joelh@piquan.org>
To:        "Walter Venable" <weaseal@hotmail.com>
Cc:        ports@freebsd.org
Subject:   Re: gcc295 and -march
Message-ID:  <87656it20h.fsf@thor.piquan.org>
In-Reply-To: <BAY18-F30ONdTmPPk8f00005e6b@hotmail.com> (Walter Venable's message of "Mon, 13 Sep 2004 09:22:17 -0400")
References:  <BAY18-F30ONdTmPPk8f00005e6b@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Does this behavior not already happen automatically?  I thought that
> if gcc 2 were used it would set it to the closest possible machine
> achitecture to what you specified in make.conf, such as "i686" if you
> had set "athlon".
> 
> Note that 2.95 is still the default compiler on 4.x.

Hmmm... When I tried to build lang/clisp, which specifies USE_GCC=295,
it did pass -march=athlon to the compile.  GNU configure said that the
compiler couldn't produce an executable, so I checked the log and
gcc295 had flagged the athlon arch as an error.  I checked my CFLAGS
in make.conf and my environment and they were both '-O -pipe'.

When I then did a "make clean all CPUTYPE=''" it configured fine
(although it bombed during the build... haven't troubleshooted that
yet, sigh).  So I conclude that the USE_GCC doesn't prevent athlon
from being passed in the Makefile.

It may be the case that /usr/share/mk/* on 4.x does downgrade athlon
to i686 or whatever in all cases.

joelh

-- 
Joel Ray Holveck - joelh@piquan.org
   Fourth law of programming:
   Anything that can go wrong wi
sendmail: segmentation violation - core dumped



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