From owner-freebsd-current Sat Nov 23 9:22:21 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3454037B406 for ; Sat, 23 Nov 2002 09:22:19 -0800 (PST) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44E4A43E6E for ; Sat, 23 Nov 2002 09:22:18 -0800 (PST) (envelope-from rehsack@liwing.de) Received: (qmail 34832 invoked from network); 23 Nov 2002 17:22:17 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 23 Nov 2002 17:22:17 -0000 Message-ID: <3DDFB905.2030107@liwing.de> Date: Sat, 23 Nov 2002 18:21:09 +0100 From: Jens Rehsack Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Miguel Mendez Cc: current@freebsd.org Subject: Re: '-ax' option in gcc References: <20021123174502.703cc4cd.flynn@energyhq.homeip.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Miguel Mendez wrote: > Hi, subject says it all... > > A -CURRENT system as of 11/15: > > flynn@christine# cat hello.c > #include > #include > > int main(int argc, char **argv) > { > printf("Hello, foo!\n"); > exit(0); > } > > flynn@christine# env CFLAGS="-pg -ax" make hello > cc -pg -ax -march=pentiumpro hello.c -o hello > cc1: unrecognized option `-ax' > *** Error code 1 > > Stop in /usr/home/flynn. > > Is the -ax option deprecated? It's still present in the man page. No > problem building such program in a -STABLE box with 2.95 > > Cheers, The "-ax" option generates code for profiling. The "-ax" options doesn't appears in the current info documentation, which is an actual one (AFAIK). So I assume, "-ax" is not supported anymore. The are new options for that in gcc3, eg. -fprofile-arcs (for generating profile information) and -fbranch-probabilities (for optimizing using profile data). You may also read http://gcc.gnu.org/ for details 'bout the new compiler and http://gcc.gnu.org/news/profiledriven.html for information about the new "Infrastructure for Profile Driven Optimizations". Bye, Jens -- L i W W W i Jens Rehsack L W W W L i W W W W i nnn gggg LiWing IT-Services L i W W W W i n n g g LLLL i W W i n n g g Friesenstraße 2 gggg 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91 ggg e-Mail: Fax: +49 - 3 45 - 5 17 05 92 http://www.liwing.de/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message