On Sat, Dec 29, 2001 at 12:02:07AM -0500, Daniel Jacobowitz wrote: > This is inconsistent with the behavior of (the undocumented) -profile > on Linux, IIRC; there it links in -lc_p but does not imply -pg. Of > course, perhaps that should just be fixed too :) This option really > should be added to the documentation.
I think you are incorrect. At the time I made the changes (it's a long time ago), I made sure it was functionally equivalent to what happens on Linux (at least that was the intention :) Anyway: ulysses:/tmp# gcc -v -profile main.c [...] /usr/lib/gcc-lib/i386-linux/2.95.4/cc1 /tmp/cckmOJdI.i \ -p -quiet -dumpbase main.c -version -o /tmp/cc67Kisl.s [...] /usr/lib/gcc-lib/i386-linux/2.95.4/collect2 -m elf_i386 \ -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcrt1.o \ /usr/lib/crti.o /usr/lib/gcc-lib/i386-linux/2.95.4/crtbegin.o \ -L/usr/lib/gcc-lib/i386-linux/2.95.4 /tmp/ccvFo8bW.o -lgcc \ -lc_p -lgcc /usr/lib/gcc-lib/i386-linux/2.95.4/crtend.o /usr/lib/crtn.o As you can see, it has -p at compilation and -lc_p at linking. I don't know where this rule comes from, it is not in the specs file. If you add -profile -pg, you will get two -p's at compilation. Hehe. Thanks, Marcus -- `Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED] Marcus Brinkmann GNU http://www.gnu.org [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.marcus-brinkmann.de