This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problem with -ax option in gcc-2.95
- From: Satyavathi Malladi <satya at ittc dot ku dot edu>
- To: <gcc at gcc dot gnu dot org>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 6 Jan 2003 19:24:31 -0600 (CST)
- Subject: problem with -ax option in gcc-2.95
On Mon, 6 Jan 2003, Satyavathi Malladi wrote:
I am using gcc-2.95. Does -ax works fine with this version.
Satya
> On Mon, 6 Jan 2003, Janis Johnson wrote:
>
> > 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
> >
>