Bug#171748: gcc-3.2: GCC doesn't accept the -a option
Fixed in the branch now. Included in the next gcc-3.2 upload:
2002-12-05 Matthias Klose <doko@debian.org>
* doc/invoke.texi: Remove last reference to -a.
Daniel Jacobowitz writes:
> On Wed, Dec 04, 2002 at 01:30:21PM -0500, Paul Smith wrote:
> > Package: gcc-3.2
> > Version: 1:3.2.1-0pre3
> > Severity: normal
> >
> > Using GCC 3.2 with -a gives this error:
> >
> > gcc-3.2 -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -g -pg -a -c ar.c
> > cc1: unrecognized option `-a'
> >
> > Using the same options with GCC 2.95 or GCC 3.0 works fine. And, the
> > Info pages in gcc-3.2-doc package still list -a as a valid option.
>
> Oops, it was removed in one place and not in the other, it's still
> mentioned:
> `-a'
> Generate extra code to write profile information for basic blocks,
> which will record the number of times each basic block is
> executed, the basic block start address, and the function name
> containing the basic block. If `-g' is used, the line number and
> filename of the start of the basic block will also be recorded.
> If not overridden by the machine description, the default action is
> to append to the text file `bb.out'.
>
> This data could be analyzed by a program like `tcov'. Note,
> however, that the format of the data is not what `tcov' expects.
> Eventually GNU `gprof' should be extended to process this data.
>
>
> Paul, scroll down a little to find -fprofile-arcs -ftest-coverage,
> which is what you want now.
Reply to: