Date: Wed, 24 Jul 2002 21:00:31 -0700 (PDT) From: Jesse Gross <jesse_gross@yahoo.com> To: john_m_cooper@yahoo.com Cc: stable@freebsd.org Subject: Re: USE_GCC=3.1 & CPUTYPE Message-ID: <20020725040031.37116.qmail@web14102.mail.yahoo.com> In-Reply-To: <1027484075.890.12.camel@johncoop.borgsdemons.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's my analysis. Please correct me if I'm wrong. It appears that many of the Ada ports use a hard coded CFLAGS or ADAFLAGS as the case may be. It is configure that dies if -march is not set correctly. However, as long as CFLAGS is set to an acceptible value, the port will build fine but will not include -march. As a result, there is no way to use -march without manually editing the Makefile in work/ The exeption to this is the GNAT port itself. This will by default use its own CFLAGS, but if it is built with make OVERRIDE_CFLAGS=yes then it will use the system CFLAGS. This allows the use of the correct -march with a patch to bsd.cpu.mk This will optimize the compiler itself, making it generate code faster, but will not make it generate faster code. One final caveat is that a patch to bsd.cpu.mk will only work if something is defined in the ports makefile system such as CC=adagcc. Otherwise, it is not possible to detect that the Ada compiler is being used. The GNAT port does this, but most of the others do not. It seems that execept for GNAT, most of the Ada ports require a modification. Also a USE_GCC=adagcc might be a good addition to the ports system. Unless the optimization for GNAT is useful or people want to change the Ada ports and the ports system itself, there is not much that can be done. Jesse Gross --- John Merryweather Cooper <john_m_cooper@yahoo.com> wrote: > Well, ALL the Ada ports cause problems if CFLAGS gets set to an > -march > that adagcc can't handle. For a good test case for you, try out > devel/gvd. If -march ends up having a gcc 2.95x or later CPU > argument, > it's guaranteed to choke. :) The GNAT port itself has been hacked > to > ignore CFLAGS, but this denies the Ada compiler the use of -march in > it's libraries and code. > > jmc __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com 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?20020725040031.37116.qmail>