From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15200 invoked by alias); 6 Jan 2003 23:20:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 15187 invoked from network); 6 Jan 2003 23:20:05 -0000 Received: from unknown (HELO e33.co.us.ibm.com) (32.97.110.131) by 209.249.29.67 with SMTP; 6 Jan 2003 23:20:05 -0000 Received: from westrelay03.boulder.ibm.com (westrelay03.boulder.ibm.com [9.17.194.24]) by e33.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h06NJrSK038754; Mon, 6 Jan 2003 18:19:53 -0500 Received: from dyn9-47-17-68.beaverton.ibm.com (dyn9-47-17-68.beaverton.ibm.com [9.47.17.68]) by westrelay03.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h06NJq1U084140; Mon, 6 Jan 2003 16:19:52 -0700 Received: (from janis@localhost) by dyn9-47-17-68.beaverton.ibm.com (8.9.3/8.9.3) id PAA03512; Mon, 6 Jan 2003 15:22:33 -0800 Date: Mon, 06 Jan 2003 23:49:00 -0000 From: Janis Johnson To: Satyavathi Malladi Cc: gcc-help@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: problem with -ax option Message-ID: <20030106152233.A29666@us.ibm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from satya@ittc.ku.edu on Mon, Jan 06, 2003 at 04:42:43PM -0600 X-SW-Source: 2003-01/txt/msg00308.txt.bz2 On Mon, Jan 06, 2003 at 04:42:43PM -0600, Satyavathi Malladi wrote: > > I have used the -ax option to profile a program. The program makes some > library function calls. So, I recompiled the library with profiling turned > on for the library functions. A particular library function is called 3 > times in my program. But the basic block, corresponding to the entry to > that function, is entered only for the first two times and not entered the > 3rd time. I ran the program several times and observed the same behavior. > The basic block corresponding to the exit of the library function is > ,however, entered. Could anyone pls help me figure out what the problem could be. Profiling with -ax was broken in GCC 3.0 and was removed in GCC 3.1. Try using -ftest-coverage -fprofile-arcs. Janis