Skip site navigation (1)Skip section navigation (2)
Date:      23 Jul 2002 14:52:56 -0700
From:      John Merryweather Cooper <john_m_cooper@yahoo.com>
To:        Jesse Gross <jesse_gross@yahoo.com>
Cc:        stable@freebsd.org
Subject:   Re: USE_GCC=3.1 & CPUTYPE
Message-ID:  <1027461176.528.3.camel@johncoop.borgsdemons.com>
In-Reply-To: <20020723185623.9602.qmail@web14102.mail.yahoo.com>
References:  <20020723185623.9602.qmail@web14102.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, basically the problem is that GNAT is built on top of gcc 2.8.1
sources.  This means -march arguments like k6 (which didn't come about
until 2.9x) cause the compiler to abort.  "pentiumpro" seems to be the
top-line CPU argument that 2.8.1 recognizes, so all of the
P2/P3/P4/K6/K7 types should be mapped to either "pentiumpro" or
"pentium" when running GNAT until such time as the gcc 3.1-based GNAT
becomes widely available/leaves alpha.

jmc

On Tue, 2002-07-23 at 11:56, Jesse Gross wrote:
> It shouldn't be too hard to fix bsd.cpu.mk to support newer CPU targets
> when the current version of GCC supports it. I will submit a patch to
> do this in the near future.
> 
> I am also willing to try to find a solution for the problem with the
> Ada compiler if someone can give me a bit more information as I am not
> a big Ada user.
> 
> Jesse Gross
> 
> --- John Merryweather Cooper <john_m_cooper@yahoo.com> wrote:
> > On a related note, it would be helpful if CPUTYPE would also respond
> > to
> > situations such as the use of GNAT (the Ada compiler) which is
> > currently
> > limited to a gcc 2.8.1 set of -march flags.  Having to manually
> > "demote"
> > CPUTYPE to build some Ada ports is a pain.
> > 
> > On Tue, 2002-07-23 at 07:48, Jesse Gross wrote:
> > > Hi,
> > > 
> > > I have USE_GCC=3.1 defined in my make.conf to build ports with GCC
> > > 3.1.1.
> > > 
> > > My computer has an Athlon CPU, so I have CPUTYPE=k7. However, this
> > is
> > > knocked down to k6 because the system GCC 2.95.4 doesn't support
> > > -march=athlon. GCC 3.1.1 does support this as well as other new
> > target
> > > CPUs. Is there a way to use the highest supported target
> > automatically
> > > depending on which version of GCC is being used?
> > > 
> > > Thanks,
> > > 
> > > Jesse Gross
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
-- 
         _
  | |V| / '                       ||  MacroHard --                   \
\_| | | \_,                       ||     the perfection of form over |
----------------------------------||     substance, marketing over   |
Web:  http://www.borgsdemons.com  ||     performance, and greed over |
AIM:  johnmcooper                 ||     design . . .                |
=====================================================================/
Public Key:  http://www.borgsdemons.com/Personal/pgpkey.asc          |
=====================================================================\


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




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