From owner-freebsd-stable Tue Jul 23 14:52:13 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C83437B401 for ; Tue, 23 Jul 2002 14:52:07 -0700 (PDT) Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 0A70443E31 for ; Tue, 23 Jul 2002 14:52:07 -0700 (PDT) (envelope-from john_m_cooper@yahoo.com) Received: from pc016247.reshall.uidaho.edu (HELO johncoop.borgsdemons.com) (john?m?cooper@129.101.136.30 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 23 Jul 2002 21:52:06 -0000 Subject: Re: USE_GCC=3.1 & CPUTYPE From: John Merryweather Cooper Reply-To: john_m_cooper@yahoo.com To: Jesse Gross Cc: stable@freebsd.org In-Reply-To: <20020723185623.9602.qmail@web14102.mail.yahoo.com> References: <20020723185623.9602.qmail@web14102.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 23 Jul 2002 14:52:56 -0700 Message-Id: <1027461176.528.3.camel@johncoop.borgsdemons.com> Mime-Version: 1.0 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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