amante@asgard.ai.mit.edu (08/05/89)
In the file gcc.c (in the gcc and g++ distributions) it is mentioned that the `-a' spec is an assembler spec which is passed by the compiler to the assembler (Lines 77 and 78 in the gcc distribution, 78 and 79 in the g++ distribution). To wit %a process ASM_SPEC as a spec. This allows config.h to specify part of the spec for running as. I looked further down the file and found the following: %{!S:as %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\ -----------------------------------------^^----------------- %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\ %{!pipe:%g.s}\n }}}"}, This is just one of several occurrences of %a for as. Because, I've used the the option `-a' before for this latter purpose, I'm wondering whether this option letter has been changed. Now, Using the `-a' option in gcc and g++ (both version 1.35) gives the following error messages, respectively: cc1: warning: `-a' option (basic block profile) not supported c++: `-a' profiling not yet supported in GNU C++ I would greatly appreciate it if this issue is resolved soon. Thanks in advance ... Amante
luik@einstein.uucp (Andreas Luik) (08/13/89)
> [...] > Now, Using the `-a' option in gcc and g++ (both version 1.35) gives > > cc1: warning: `-a' option (basic block profile) not supported > > c++: `-a' profiling not yet supported in GNU C++ > > I would greatly appreciate it if this issue is resolved soon. > Thanks in advance ... Amante -a Generate extra code to write profile information for basic blocks, suitable for the analysis program tcov(1). Eventually GNU gprof(1) should be extended to process this data. This switch is compatible with the -a switch of the SunOS 4.x cc -a switch. Note, that gcc -a is only supported on Sun-2,-3 and -4 systems. As I reported before, it does even not work yet (see article <1027@isaak.UUCP>). Hope this helps, Andreas Luik Domain: luik@isaak.isa.de ISA GmbH UUCP: luik@isaak.uucp Azenberstr. 35 Bang: ...!uunet!unido!isaak!luik 7000 Stuttgart (West-Germany) BITNET: luik%isaak.uucp@unido.bitnet